pub struct Name<'a> {
source: Source<'a>,
id: NameId,
start: usize,
}Expand description
The localized strings for one name identifier.
Fields§
§source: Source<'a>§id: NameId§start: usizeImplementations§
Source§impl<'a> Name<'a>
impl<'a> Name<'a>
Sourcepub fn english_or_first(&self) -> Option<Localized<'a>>
pub fn english_or_first(&self) -> Option<Localized<'a>>
Returns en-US or en if present, falling back to the first entry.
This prefers en-US, then en, then a name without a language tag,
and finally the first name in table order. Records with unsupported
encodings are skipped. Returns None if no decodable name with this
identifier is available.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Name<'a>
impl<'a> RefUnwindSafe for Name<'a>
impl<'a> Send for Name<'a>
impl<'a> Sync for Name<'a>
impl<'a> Unpin for Name<'a>
impl<'a> UnsafeUnpin for Name<'a>
impl<'a> UnwindSafe for Name<'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