pub struct LanguageId(/* private fields */);Expand description
KotOR language identifier used by TLK and localized-string payloads.
This wrapper preserves unknown/custom IDs losslessly while making language semantics explicit at API boundaries.
Implementations§
Trait Implementations§
Source§impl Clone for LanguageId
impl Clone for LanguageId
Source§fn clone(&self) -> LanguageId
fn clone(&self) -> LanguageId
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LanguageId
impl Debug for LanguageId
Source§impl Default for LanguageId
impl Default for LanguageId
Source§fn default() -> LanguageId
fn default() -> LanguageId
Returns the “default value” for a type. Read more
Source§impl Display for LanguageId
impl Display for LanguageId
Source§impl From<LanguageId> for u32
impl From<LanguageId> for u32
Source§fn from(value: LanguageId) -> Self
fn from(value: LanguageId) -> Self
Converts to this type from the input type.
Source§impl From<u32> for LanguageId
impl From<u32> for LanguageId
Source§impl Hash for LanguageId
impl Hash for LanguageId
Source§impl Ord for LanguageId
impl Ord for LanguageId
Source§fn cmp(&self, other: &LanguageId) -> Ordering
fn cmp(&self, other: &LanguageId) -> Ordering
1.21.0 · 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
Source§impl PartialEq for LanguageId
impl PartialEq for LanguageId
Source§impl PartialOrd for LanguageId
impl PartialOrd for LanguageId
impl Copy for LanguageId
impl Eq 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 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