Enum shiratsu_naming::naming::NameError
source · [−]pub enum NameError {
ParseError(NamingConvention, String),
RegionError(RegionError),
}
Expand description
Name parsing errors.
Variants
ParseError(NamingConvention, String)
The file name could not be parsed with the given naming conventions.
RegionError(RegionError)
An error occured when parsing a region string.
Trait Implementations
sourceimpl Error for NameError
impl Error for NameError
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎 Deprecated since 1.42.0:
use the Display impl or to_string()
sourceimpl From<RegionError> for NameError
impl From<RegionError> for NameError
sourcefn from(err: RegionError) -> Self
fn from(err: RegionError) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for NameError
Auto Trait Implementations
impl RefUnwindSafe for NameError
impl Send for NameError
impl Sync for NameError
impl Unpin for NameError
impl UnwindSafe for NameError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more