pub enum Names {
Format0(Names0),
Format1(Names1),
}
Expand description
A naming table.
Variants§
Implementations§
source§impl Names
impl Names
sourcepub fn iter(
&self
) -> impl Iterator<Item = ((PlatformID, EncodingID, LanguageID, NameID), Option<String>)> + DoubleEndedIterator + '_
pub fn iter( &self ) -> impl Iterator<Item = ((PlatformID, EncodingID, LanguageID, NameID), Option<String>)> + DoubleEndedIterator + '_
Iterate over name records.
sourcepub fn from_iter<T, U, V, W>(
records: T,
language_tags: U,
context: &mut Context
) -> Result<Self>where
T: IntoIterator<Item = ((PlatformID, EncodingID, LanguageID, NameID), V)>,
U: IntoIterator<Item = W>,
V: AsRef<str>,
W: AsRef<str>,
pub fn from_iter<T, U, V, W>(
records: T,
language_tags: U,
context: &mut Context
) -> Result<Self>where
T: IntoIterator<Item = ((PlatformID, EncodingID, LanguageID, NameID), V)>,
U: IntoIterator<Item = W>,
V: AsRef<str>,
W: AsRef<str>,
Create an instance from an iterator over name records.
Iterate over the language tags.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Names
impl Send for Names
impl Sync for Names
impl Unpin for Names
impl UnwindSafe for Names
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