#[non_exhaustive]pub enum TextErrorKind {
InvalidEscape {
found: String,
},
InvalidPlaceholder {
found: String,
},
MissingTab,
EmptyKey,
DuplicateKey,
UnknownDirective {
name: String,
},
}Expand description
The kind of text table error.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
InvalidEscape
An escape that cannot be used (in a translation). Argument found (\ and the next character).
InvalidPlaceholder
A ${…} that is not in the form ${n} (n is an integer of 1 or more), or an unclosed ${ (in a translation).
Argument found.
MissingTab
A line of the table file has no TAB separating the key and the translation.
EmptyKey
The key of a line of the table file is empty.
DuplicateKey
The same key appears twice in the table file.
UnknownDirective
An unknown directive in the table file (an @… other than @lang). Argument name.
Implementations§
Trait Implementations§
Source§impl Clone for TextErrorKind
impl Clone for TextErrorKind
Source§impl Debug for TextErrorKind
impl Debug for TextErrorKind
impl Eq for TextErrorKind
Source§impl PartialEq for TextErrorKind
impl PartialEq for TextErrorKind
impl StructuralPartialEq for TextErrorKind
Auto Trait Implementations§
impl Forget for TextErrorKind
impl Freeze for TextErrorKind
impl Move for TextErrorKind
impl RefUnwindSafe for TextErrorKind
impl Send for TextErrorKind
impl Sync for TextErrorKind
impl Unpin for TextErrorKind
impl UnsafeUnpin for TextErrorKind
impl UnwindSafe for TextErrorKind
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