Struct casper_types::CLTypeMismatch
source · pub struct CLTypeMismatch {
pub expected: CLType,
pub found: CLType,
}
Expand description
Error while converting a CLValue
into a given type.
Fields§
§expected: CLType
The CLType
into which the CLValue
was being converted.
found: CLType
The actual underlying CLType
of this CLValue
, i.e. the type from which it was
constructed.
Trait Implementations§
source§impl Clone for CLTypeMismatch
impl Clone for CLTypeMismatch
source§fn clone(&self) -> CLTypeMismatch
fn clone(&self) -> CLTypeMismatch
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for CLTypeMismatch
impl Debug for CLTypeMismatch
source§impl<'de> Deserialize<'de> for CLTypeMismatch
impl<'de> Deserialize<'de> for CLTypeMismatch
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Display for CLTypeMismatch
impl Display for CLTypeMismatch
source§impl PartialEq for CLTypeMismatch
impl PartialEq for CLTypeMismatch
source§fn eq(&self, other: &CLTypeMismatch) -> bool
fn eq(&self, other: &CLTypeMismatch) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CLTypeMismatch
impl Serialize for CLTypeMismatch
impl Eq for CLTypeMismatch
impl StructuralEq for CLTypeMismatch
impl StructuralPartialEq for CLTypeMismatch
Auto Trait Implementations§
impl RefUnwindSafe for CLTypeMismatch
impl Send for CLTypeMismatch
impl Sync for CLTypeMismatch
impl Unpin for CLTypeMismatch
impl UnwindSafe for CLTypeMismatch
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