Struct roead::aamp::ParameterListMap
source · pub struct ParameterListMap(pub IndexMap<Name, ParameterList, BuildHasherDefault<FxHasher>>);
Available on crate feature
aamp
only.Expand description
Newtype map of parameter lists.
Tuple Fields§
§0: IndexMap<Name, ParameterList, BuildHasherDefault<FxHasher>>
Implementations§
source§impl ParameterListMap
impl ParameterListMap
sourcepub fn insert<N: Into<Name>>(&mut self, key: N, value: ParameterList)
pub fn insert<N: Into<Name>>(&mut self, key: N, value: ParameterList)
Insert a new entry.
sourcepub fn extend<I: IntoIterator<Item = (Name, ParameterList)>>(&mut self, iter: I)
pub fn extend<I: IntoIterator<Item = (Name, ParameterList)>>(&mut self, iter: I)
Insert multiple entries from an iterator.
sourcepub fn get<N: Into<Name>>(&self, key: N) -> Option<&ParameterList>
pub fn get<N: Into<Name>>(&self, key: N) -> Option<&ParameterList>
Get an entry value by name or hash.
sourcepub fn get_mut<N: Into<Name>>(&mut self, key: N) -> Option<&mut ParameterList>
pub fn get_mut<N: Into<Name>>(&mut self, key: N) -> Option<&mut ParameterList>
Get an entry value mutably by name or hash.
sourcepub fn entry<N: Into<Name>>(&mut self, key: N) -> Entry<'_, Name, ParameterList>
pub fn entry<N: Into<Name>>(&mut self, key: N) -> Entry<'_, Name, ParameterList>
Get a full entry by name or hash.
sourcepub fn iter(&self) -> impl Iterator<Item = (&Name, &ParameterList)>
pub fn iter(&self) -> impl Iterator<Item = (&Name, &ParameterList)>
Iterate entries.
sourcepub fn iter_mut(&mut self) -> impl Iterator<Item = (&Name, &mut ParameterList)>
pub fn iter_mut(&mut self) -> impl Iterator<Item = (&Name, &mut ParameterList)>
Iterate entries mutably.
sourcepub fn iter_by_name(
&self,
) -> impl Iterator<Item = (Result<&'static Cow<'static, str>, u32>, &ParameterList)>
Available on crate feature yaml
only.
pub fn iter_by_name( &self, ) -> impl Iterator<Item = (Result<&'static Cow<'static, str>, u32>, &ParameterList)>
yaml
only.Iterate entries by name (this is potentially rather expensive,
as the name for each hash must be looked up from the default
name table). It returns a Result
for
each name, with the found name as the success value or the hash
as the error value.
This is only available with the yaml
feature.
Trait Implementations§
source§impl Clone for ParameterListMap
impl Clone for ParameterListMap
source§fn clone(&self) -> ParameterListMap
fn clone(&self) -> ParameterListMap
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 ParameterListMap
impl Debug for ParameterListMap
source§impl Default for ParameterListMap
impl Default for ParameterListMap
source§fn default() -> ParameterListMap
fn default() -> ParameterListMap
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for ParameterListMap
impl<'de> Deserialize<'de> for ParameterListMap
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<N: Into<Name>> FromIterator<(N, ParameterList)> for ParameterListMap
impl<N: Into<Name>> FromIterator<(N, ParameterList)> for ParameterListMap
source§fn from_iter<T: IntoIterator<Item = (N, ParameterList)>>(iter: T) -> Self
fn from_iter<T: IntoIterator<Item = (N, ParameterList)>>(iter: T) -> Self
Creates a value from an iterator. Read more
source§impl<N: Into<Name>> Index<N> for ParameterListMap
impl<N: Into<Name>> Index<N> for ParameterListMap
§type Output = ParameterList
type Output = ParameterList
The returned type after indexing.
source§fn index(&self, name: N) -> &ParameterList
fn index(&self, name: N) -> &ParameterList
Performs the indexing (
container[index]
) operation. Read moresource§impl<N: Into<Name>> IndexMut<N> for ParameterListMap
impl<N: Into<Name>> IndexMut<N> for ParameterListMap
source§fn index_mut(&mut self, name: N) -> &mut ParameterList
fn index_mut(&mut self, name: N) -> &mut ParameterList
Performs the mutable indexing (
container[index]
) operation. Read moresource§impl PartialEq for ParameterListMap
impl PartialEq for ParameterListMap
source§impl Serialize for ParameterListMap
impl Serialize for ParameterListMap
impl Eq for ParameterListMap
impl StructuralPartialEq for ParameterListMap
Auto Trait Implementations§
impl Freeze for ParameterListMap
impl RefUnwindSafe for ParameterListMap
impl Send for ParameterListMap
impl Sync for ParameterListMap
impl Unpin for ParameterListMap
impl UnwindSafe for ParameterListMap
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.