Struct sandkiste::errors::TypeMismatch
source · pub struct TypeMismatch { /* private fields */ }
Expand description
Error indicating that Machine::Datum
had an unexpected (dynamic) type
See also types
module.
For convenience, this error type can be converted into a MachineError
.
Implementations§
source§impl TypeMismatch
impl TypeMismatch
Trait Implementations§
source§impl Debug for TypeMismatch
impl Debug for TypeMismatch
source§impl Display for TypeMismatch
impl Display for TypeMismatch
source§impl Error for TypeMismatch
impl Error for TypeMismatch
1.30.0 · source§fn 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 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl<D> From<DatumConversionFailure<D>> for TypeMismatch
impl<D> From<DatumConversionFailure<D>> for TypeMismatch
source§fn from(failure: DatumConversionFailure<D>) -> Self
fn from(failure: DatumConversionFailure<D>) -> Self
Converts to this type from the input type.
source§impl From<TypeMismatch> for MachineError
impl From<TypeMismatch> for MachineError
source§fn from(datum_err: TypeMismatch) -> Self
fn from(datum_err: TypeMismatch) -> Self
Converts to this type from the input type.