pub enum LocaleRelativeFtlPathError {
Empty,
Absolute,
Backslash,
MissingFtlSuffix,
InvalidStem(NamespacePathError),
}Expand description
Errors produced while validating locale-relative Fluent resource paths.
Variants§
Empty
The path is empty.
Absolute
The path is absolute.
Backslash
The path contains a Windows path separator.
MissingFtlSuffix
The path does not end with .ftl.
InvalidStem(NamespacePathError)
The path stem is not a valid locale-relative namespace-style path.
Trait Implementations§
Source§impl Clone for LocaleRelativeFtlPathError
impl Clone for LocaleRelativeFtlPathError
Source§impl Debug for LocaleRelativeFtlPathError
impl Debug for LocaleRelativeFtlPathError
Source§impl Display for LocaleRelativeFtlPathError
impl Display for LocaleRelativeFtlPathError
impl Eq for LocaleRelativeFtlPathError
Source§impl Error for LocaleRelativeFtlPathError
impl Error for LocaleRelativeFtlPathError
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()
Source§impl From<NamespacePathError> for LocaleRelativeFtlPathError
impl From<NamespacePathError> for LocaleRelativeFtlPathError
Source§fn from(source: NamespacePathError) -> Self
fn from(source: NamespacePathError) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for LocaleRelativeFtlPathError
Auto Trait Implementations§
impl Freeze for LocaleRelativeFtlPathError
impl RefUnwindSafe for LocaleRelativeFtlPathError
impl Send for LocaleRelativeFtlPathError
impl Sync for LocaleRelativeFtlPathError
impl Unpin for LocaleRelativeFtlPathError
impl UnsafeUnpin for LocaleRelativeFtlPathError
impl UnwindSafe for LocaleRelativeFtlPathError
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