pub struct CollectionMap(pub HashMap<String, CollectionSignature>);
Expand description
A HashMap from collection names to their signatures.
Tuple Fields§
§0: HashMap<String, CollectionSignature>
Implementations§
Source§impl CollectionMap
impl CollectionMap
Sourcepub fn get<K: AsRef<str>>(&self, field: K) -> Option<&CollectionSignature>
pub fn get<K: AsRef<str>>(&self, field: K) -> Option<&CollectionSignature>
Get the value for the requested field.
Sourcepub fn get_mut<K: AsRef<str>>(
&mut self,
field: K,
) -> Option<&mut CollectionSignature>
pub fn get_mut<K: AsRef<str>>( &mut self, field: K, ) -> Option<&mut CollectionSignature>
Get the value for the requested field.
Sourcepub fn contains_key<K: AsRef<str>>(&self, field: K) -> bool
pub fn contains_key<K: AsRef<str>>(&self, field: K) -> bool
Get the value for the requested field.
Sourcepub fn insert<K: AsRef<str>>(&mut self, field: K, value: CollectionSignature)
pub fn insert<K: AsRef<str>>(&mut self, field: K, value: CollectionSignature)
Insert a $t into the inner map.
Sourcepub fn remove(&mut self, key: &str) -> Option<CollectionSignature>
pub fn remove(&mut self, key: &str) -> Option<CollectionSignature>
Remove a value from the inner Map.
Sourcepub fn into_inner(self) -> HashMap<String, CollectionSignature>
pub fn into_inner(self) -> HashMap<String, CollectionSignature>
Return the inner HashMap.
Sourcepub fn inner(&self) -> &HashMap<String, CollectionSignature>
pub fn inner(&self) -> &HashMap<String, CollectionSignature>
Return a reference to the inner HashMap.
Trait Implementations§
Source§impl Clone for CollectionMap
impl Clone for CollectionMap
Source§fn clone(&self) -> CollectionMap
fn clone(&self) -> CollectionMap
Returns a copy 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 CollectionMap
impl Debug for CollectionMap
Source§impl Default for CollectionMap
impl Default for CollectionMap
Source§fn default() -> CollectionMap
fn default() -> CollectionMap
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CollectionMap
impl<'de> Deserialize<'de> for CollectionMap
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<HashMap<String, CollectionSignature>> for CollectionMap
impl From<HashMap<String, CollectionSignature>> for CollectionMap
Source§impl PartialEq for CollectionMap
impl PartialEq for CollectionMap
Source§impl Serialize for CollectionMap
impl Serialize for CollectionMap
impl StructuralPartialEq for CollectionMap
Auto Trait Implementations§
impl Freeze for CollectionMap
impl RefUnwindSafe for CollectionMap
impl Send for CollectionMap
impl Sync for CollectionMap
impl Unpin for CollectionMap
impl UnwindSafe for CollectionMap
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