pub struct Localized<'a> {
name: Encoded<'a>,
language: Option<Encoded<'a>>,
sfnt_record: Option<NameRecord>,
}Expand description
A font name and its optional BCP 47 language tag.
The language is None when the source supplies no recognized language or
when the name comes from a Type 1 or standalone CFF font.
Fields§
§name: Encoded<'a>§language: Option<Encoded<'a>>§sfnt_record: Option<NameRecord>Implementations§
Source§impl<'a> Localized<'a>
impl<'a> Localized<'a>
Sourcepub fn sfnt_record(self) -> Option<NameRecord>
pub fn sfnt_record(self) -> Option<NameRecord>
Returns the source name record for an SFNT name, or None for Type 1 or CFF.
fn from_record(table: &SfntName<'a>, record: &NameRecord) -> Option<Self>
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Localized<'a>
impl<'a> RefUnwindSafe for Localized<'a>
impl<'a> Send for Localized<'a>
impl<'a> Sync for Localized<'a>
impl<'a> Unpin for Localized<'a>
impl<'a> UnsafeUnpin for Localized<'a>
impl<'a> UnwindSafe for Localized<'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