pub enum LcidLookupError {
ReservedBits(u32, u32),
SortIdBits(u32, u32),
Reserved(u32, &'static str),
ReservedUnknown(u32),
NeitherDefinedNorReserved(u32),
Undefined(u32),
Temporary(u32),
}
Expand description
Errors when looking up a LanguageId
from a numeric (u32
) LCID via
TryFrom
or TryInto
.
Variants§
ReservedBits(u32, u32)
The LCID has set reserved bits (original value, reserved bits).
SortIdBits(u32, u32)
The LCID has sort ID bits set (original value, sort ID bits).
Reserved(u32, &'static str)
The LCID refers to a named reserved language.
ReservedUnknown(u32)
The LCID refers to a unknown reserved language.
NeitherDefinedNorReserved(u32)
The LCID is neither defined nor reserved.
Undefined(u32)
The LCID is undefined.
Temporary(u32)
The LCID is a temporary LCID assignment.
Trait Implementations§
Source§impl Debug for LcidLookupError
impl Debug for LcidLookupError
Source§impl Display for LcidLookupError
impl Display for LcidLookupError
Source§impl Error for LcidLookupError
impl Error for LcidLookupError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for LcidLookupError
impl RefUnwindSafe for LcidLookupError
impl Send for LcidLookupError
impl Sync for LcidLookupError
impl Unpin for LcidLookupError
impl UnwindSafe for LcidLookupError
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