#[repr(u16)]pub enum LanguageId {
Tagged(u16),
Macintosh(u16),
Windows(u16),
}Variants§
Implementations§
Source§impl LanguageId
impl LanguageId
pub const fn new(platform_id: u16, language_id: u16) -> Option<Self>
pub const fn platform_id(&self) -> Option<u16>
pub const fn language_id(&self) -> u16
pub fn tag(&self, table: Option<Name<'_>>) -> Option<Cow<'static, str>>
pub fn english_name(&self, table: Option<Name<'_>>) -> Option<Cow<'static, str>>
Trait Implementations§
Source§impl Clone for LanguageId
impl Clone for LanguageId
impl Copy for LanguageId
Source§impl Debug for LanguageId
impl Debug for LanguageId
impl Eq for LanguageId
Source§impl Hash for LanguageId
impl Hash for LanguageId
Source§impl PartialEq for LanguageId
impl PartialEq for LanguageId
impl StructuralPartialEq for LanguageId
Auto Trait Implementations§
impl Freeze for LanguageId
impl RefUnwindSafe for LanguageId
impl Send for LanguageId
impl Sync for LanguageId
impl Unpin for LanguageId
impl UnsafeUnpin for LanguageId
impl UnwindSafe for LanguageId
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