Struct time::error::InvalidVariant
source · [−]pub struct InvalidVariant;
Expand description
An error type indicating that a FromStr
call failed because the value
was not a valid variant.
Trait Implementations
sourceimpl Clone for InvalidVariant
impl Clone for InvalidVariant
sourcefn clone(&self) -> InvalidVariant
fn clone(&self) -> InvalidVariant
Returns a copy of the value. Read more
1.0.0const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for InvalidVariant
impl Debug for InvalidVariant
sourceimpl Display for InvalidVariant
impl Display for InvalidVariant
sourceimpl Error for InvalidVariant
impl Error for InvalidVariant
1.30.0fn 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.0fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0fn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
sourceimpl From<InvalidVariant> for Error
impl From<InvalidVariant> for Error
sourcefn from(err: InvalidVariant) -> Self
fn from(err: InvalidVariant) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<InvalidVariant> for InvalidVariant
impl PartialEq<InvalidVariant> for InvalidVariant
sourcefn eq(&self, other: &InvalidVariant) -> bool
fn eq(&self, other: &InvalidVariant) -> bool
sourceimpl TryFrom<Error> for InvalidVariant
impl TryFrom<Error> for InvalidVariant
type Error = DifferentVariant
type Error = DifferentVariant
The type returned in the event of a conversion error.
impl Copy for InvalidVariant
impl Eq for InvalidVariant
impl StructuralEq for InvalidVariant
impl StructuralPartialEq for InvalidVariant
Auto Trait Implementations
impl RefUnwindSafe for InvalidVariant
impl Send for InvalidVariant
impl Sync for InvalidVariant
impl Unpin for InvalidVariant
impl UnwindSafe for InvalidVariant
Blanket Implementations
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstablefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> ToOwned for Twhere
T: Clone,
impl<T> ToOwned for Twhere
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
fn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
Uses borrowed data to replace owned data, usually by cloning. Read more