pub enum I18nError {
FileRead(Error),
ParseError(String),
UnsupportedFormat(String),
FeatureNotEnabled(String),
TranslationNotFound(String),
}Expand description
国际化错误类型
Variants§
FileRead(Error)
文件读取错误
ParseError(String)
解析错误
UnsupportedFormat(String)
不支持的文件格式
FeatureNotEnabled(String)
特性未启用
TranslationNotFound(String)
翻译未找到
Trait Implementations§
Source§impl Error for I18nError
impl Error for I18nError
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 I18nError
impl !RefUnwindSafe for I18nError
impl Send for I18nError
impl Sync for I18nError
impl Unpin for I18nError
impl UnsafeUnpin for I18nError
impl !UnwindSafe for I18nError
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