Struct cursive::reexports::time::error::DifferentVariant [−]
pub struct DifferentVariant;
Expand description
An error type indicating that a TryFrom
call failed because the
original value was of a different variant.
Trait Implementations
impl Clone for DifferentVariant
impl Clone for DifferentVariant
pub fn clone(&self) -> DifferentVariant
pub fn clone(&self) -> DifferentVariant
Returns a copy of the value. Read more
Performs copy-assignment from source
. Read more
impl Debug for DifferentVariant
impl Debug for DifferentVariant
impl Display for DifferentVariant
impl Display for DifferentVariant
impl Error for DifferentVariant
impl Error for DifferentVariant
impl From<DifferentVariant> for Error
impl From<DifferentVariant> for Error
pub fn from(err: DifferentVariant) -> Error
pub fn from(err: DifferentVariant) -> Error
Performs the conversion.
impl PartialEq<DifferentVariant> for DifferentVariant
impl PartialEq<DifferentVariant> for DifferentVariant
impl TryFrom<Error> for DifferentVariant
impl TryFrom<Error> for DifferentVariant
type Error = DifferentVariant
type Error = DifferentVariant
The type returned in the event of a conversion error.
pub fn try_from(
err: Error
) -> Result<DifferentVariant, <DifferentVariant as TryFrom<Error>>::Error>
pub fn try_from(
err: Error
) -> Result<DifferentVariant, <DifferentVariant as TryFrom<Error>>::Error>
Performs the conversion.
impl Copy for DifferentVariant
impl Eq for DifferentVariant
impl StructuralEq for DifferentVariant
impl StructuralPartialEq for DifferentVariant
Auto Trait Implementations
impl RefUnwindSafe for DifferentVariant
impl Send for DifferentVariant
impl Sync for DifferentVariant
impl Unpin for DifferentVariant
impl UnwindSafe for DifferentVariant
Blanket Implementations
Mutably borrows from an owned value. Read more
Calls the given closure and return the result. Read more
Calls the given closure on self
.