pub struct LCID(/* private fields */);
Available on crate feature
kernel
only.Expand description
LCID
locale identifier.
Implementations§
Source§impl LCID
impl LCID
Sourcepub const unsafe fn as_mut(&mut self) -> &mut u32
pub const unsafe fn as_mut(&mut self) -> &mut u32
Returns a mutable reference to the underlying raw value.
§Safety
Be sure the integer being set is meaningful for the actual type.
Sourcepub const unsafe fn from_raw(v: u32) -> Self
pub const unsafe fn from_raw(v: u32) -> Self
Constructs a new object by wrapping the given integer value.
§Safety
Be sure the given value is meaningful for the actual type.
Sourcepub const fn raw(&self) -> u32
pub const fn raw(&self) -> u32
Returns the primitive integer underlying value.
This method is similar to Into
, but it
is const
, therefore it can be used in
const contexts.
Source§impl LCID
impl LCID
Sourcepub const SYSTEM_DEFAULT: Self
pub const SYSTEM_DEFAULT: Self
LCID
composed of
LANGID::SYSTEM_DEFAULT
and
SORT::DEFAULT
.
Sourcepub const USER_DEFAULT: Self
pub const USER_DEFAULT: Self
LCID
composed of
LANGID::USER_DEFAULT
and
SORT::DEFAULT
.
Sourcepub const fn new(lang_id: LANGID, sort_id: SORT) -> Self
pub const fn new(lang_id: LANGID, sort_id: SORT) -> Self
Creates a new LCID
. Originally
MAKELCID
macro.
Sourcepub const fn lang_id(self) -> LANGID
pub const fn lang_id(self) -> LANGID
Returns the language identifier. Originally
LANGIDFROMLCID
macro.
Sourcepub const fn sort_id(self) -> SORT
pub const fn sort_id(self) -> SORT
Returns the sort ID. Originally
SORTIDFROMLCID
macro.
Trait Implementations§
Source§impl Ord for LCID
impl Ord for LCID
Source§impl PartialOrd for LCID
impl PartialOrd for LCID
impl Copy for LCID
impl Eq for LCID
impl StructuralPartialEq for LCID
Auto Trait Implementations§
impl Freeze for LCID
impl RefUnwindSafe for LCID
impl Send for LCID
impl Sync for LCID
impl Unpin for LCID
impl UnwindSafe for LCID
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