#[repr(u16)]pub enum PlatformId {
Unicode = 0,
Macintosh = 1,
Iso = 2,
Windows = 3,
Custom = 4,
}Variants§
Implementations§
Source§impl PlatformId
impl PlatformId
Source§impl PlatformId
impl PlatformId
pub const fn encoding(&self, enc_id: u16) -> Option<EncodingId>
pub const fn language(&self, lang_id: u16) -> Option<LanguageId>
Trait Implementations§
Source§impl Clone for PlatformId
impl Clone for PlatformId
impl Copy for PlatformId
Source§impl Debug for PlatformId
impl Debug for PlatformId
impl Eq for PlatformId
Source§impl Hash for PlatformId
impl Hash for PlatformId
Source§impl Ord for PlatformId
impl Ord for PlatformId
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for PlatformId
impl PartialEq for PlatformId
Source§impl PartialOrd for PlatformId
impl PartialOrd for PlatformId
impl StructuralPartialEq for PlatformId
Auto Trait Implementations§
impl Freeze for PlatformId
impl RefUnwindSafe for PlatformId
impl Send for PlatformId
impl Sync for PlatformId
impl Unpin for PlatformId
impl UnsafeUnpin for PlatformId
impl UnwindSafe for PlatformId
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