#[repr(u8)]enum Language {
Inline {
buf: [u8; 30],
len: u8,
},
Static(&'static str),
}
Variants§
Implementations§
Source§impl Language
impl Language
fn new(name: &Name<'_>, record: &NameRecord) -> Option<Self>
Sourcefn from_name_string(s: &NameString<'_>) -> Option<Self>
fn from_name_string(s: &NameString<'_>) -> Option<Self>
Decodes a language tag string into an inline ASCII byte sequence.
fn from_language_id(language_id: u16) -> Option<Self>
fn as_str(&self) -> &str
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Language
impl RefUnwindSafe for Language
impl Send for Language
impl Sync for Language
impl Unpin for Language
impl UnwindSafe for Language
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