pub struct InvalidLangString(pub String);Expand description
Raised when something tried to build a language string without language tag or direction.
Carries back the recovered string data so the caller can fall back to a non-language string.
Tuple Fields§
§0: StringTrait Implementations§
Source§impl Clone for InvalidLangString
impl Clone for InvalidLangString
Source§fn clone(&self) -> InvalidLangString
fn clone(&self) -> InvalidLangString
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 InvalidLangString
impl Debug for InvalidLangString
Source§impl Display for InvalidLangString
impl Display for InvalidLangString
Source§impl Error for InvalidLangString
impl Error for InvalidLangString
1.30.0 · 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 InvalidLangString
impl RefUnwindSafe for InvalidLangString
impl Send for InvalidLangString
impl Sync for InvalidLangString
impl Unpin for InvalidLangString
impl UnsafeUnpin for InvalidLangString
impl UnwindSafe for InvalidLangString
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
Source§impl<T> BorrowUnordered for T
impl<T> BorrowUnordered for T
Source§fn as_unordered(&self) -> &Unordered<T>
fn as_unordered(&self) -> &Unordered<T>
Views this value as an
Unordered reference.