pub struct FeatureNames<'a> {
data: &'a [u8],
records: LazyArray16<'a, FeatureNameRecord>,
}
Expand description
A list of feature names.
Fields§
§data: &'a [u8]
§records: LazyArray16<'a, FeatureNameRecord>
Implementations§
Source§impl<'a> FeatureNames<'a>
impl<'a> FeatureNames<'a>
Sourcepub fn get(&self, index: u16) -> Option<FeatureName<'a>>
pub fn get(&self, index: u16) -> Option<FeatureName<'a>>
Returns a feature name at an index.
Sourcepub fn find(&self, feature: u16) -> Option<FeatureName<'a>>
pub fn find(&self, feature: u16) -> Option<FeatureName<'a>>
Finds a feature name by ID.
Trait Implementations§
Source§impl<'a> Clone for FeatureNames<'a>
impl<'a> Clone for FeatureNames<'a>
Source§fn clone(&self) -> FeatureNames<'a>
fn clone(&self) -> FeatureNames<'a>
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<'a> Debug for FeatureNames<'a>
impl<'a> Debug for FeatureNames<'a>
Source§impl<'a> IntoIterator for FeatureNames<'a>
impl<'a> IntoIterator for FeatureNames<'a>
Source§type Item = FeatureName<'a>
type Item = FeatureName<'a>
The type of the elements being iterated over.
Source§type IntoIter = FeatureNamesIter<'a>
type IntoIter = FeatureNamesIter<'a>
Which kind of iterator are we turning this into?
Source§fn into_iter(self) -> <FeatureNames<'a> as IntoIterator>::IntoIter
fn into_iter(self) -> <FeatureNames<'a> as IntoIterator>::IntoIter
Creates an iterator from a value. Read more
impl<'a> Copy for FeatureNames<'a>
Auto Trait Implementations§
impl<'a> Freeze for FeatureNames<'a>
impl<'a> RefUnwindSafe for FeatureNames<'a>
impl<'a> Send for FeatureNames<'a>
impl<'a> Sync for FeatureNames<'a>
impl<'a> Unpin for FeatureNames<'a>
impl<'a> UnwindSafe for FeatureNames<'a>
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