pub struct CodeRegistry {
pub items: Vec<CodeData>,
/* private fields */
}Expand description
A registry holding a Vec<CodeData> and indexes from names and values.
Fields§
§items: Vec<CodeData>A list of all the items in this registry.
Implementations§
Source§impl CodeRegistry
impl CodeRegistry
Sourcepub fn new(items: Vec<CodeData>) -> Self
pub fn new(items: Vec<CodeData>) -> Self
Create a CodeRegistry from a Vec<CodeData>.
This will iterate over the list of items at least 2 times.
Trait Implementations§
Source§impl Clone for CodeRegistry
impl Clone for CodeRegistry
Source§fn clone(&self) -> CodeRegistry
fn clone(&self) -> CodeRegistry
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CodeRegistry
impl Debug for CodeRegistry
Source§impl<'de> Deserialize<'de> for CodeRegistry
impl<'de> Deserialize<'de> for CodeRegistry
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<CodeRegistry> for Vec<CodeData>
impl From<CodeRegistry> for Vec<CodeData>
Source§fn from(registry: CodeRegistry) -> Self
fn from(registry: CodeRegistry) -> Self
Converts to this type from the input type.
Source§impl PartialEq for CodeRegistry
impl PartialEq for CodeRegistry
Source§impl Serialize for CodeRegistry
impl Serialize for CodeRegistry
impl Eq for CodeRegistry
impl StructuralPartialEq for CodeRegistry
Auto Trait Implementations§
impl Freeze for CodeRegistry
impl RefUnwindSafe for CodeRegistry
impl Send for CodeRegistry
impl Sync for CodeRegistry
impl Unpin for CodeRegistry
impl UnwindSafe for CodeRegistry
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more