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 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 IntUnderlying for LCID
impl IntUnderlying for LCID
source§impl PartialEq for LCID
impl PartialEq for LCID
impl Copy for LCID
impl Eq for LCID
impl Send for LCID
impl StructuralPartialEq for LCID
Auto Trait Implementations§
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