pub enum NewError {
InvalidYear(usize),
InvalidDay(usize),
Scaffold(ScaffoldError),
MissingDay,
}Variants§
Trait Implementations§
Source§impl Error for NewError
impl Error for NewError
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<ScaffoldError> for NewError
impl From<ScaffoldError> for NewError
Source§fn from(source: ScaffoldError) -> Self
fn from(source: ScaffoldError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for NewError
impl !UnwindSafe for NewError
impl Forget for NewError
impl Freeze for NewErrorwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
*const () is !null: Freeze,
PhantomData<ErrorData<CustomOwner>>: Freeze,
*const ErrorRepr is !null: Freeze,
PhantomData<ErrorRepr>: Freeze,
impl Move for NewError
impl Send for NewError
impl Sync for NewError
impl Unpin for NewError
impl UnsafeUnpin for NewErrorwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const () is !null: UnsafeUnpin,
PhantomData<ErrorData<CustomOwner>>: UnsafeUnpin,
*const ErrorRepr is !null: UnsafeUnpin,
PhantomData<ErrorRepr>: UnsafeUnpin,
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