pub enum TypeCoercionError {
RequiresToMem,
Incompatible,
SelfContractType,
}
Expand description
Errors that can result from an implicit type coercion
Variants§
RequiresToMem
Value is in storage and must be explicitly moved with .to_mem()
Incompatible
Value type cannot be coerced to the expected type
SelfContractType
self
contract used where an external contract value is expected
Trait Implementations§
Source§impl Debug for TypeCoercionError
impl Debug for TypeCoercionError
Source§impl PartialEq for TypeCoercionError
impl PartialEq for TypeCoercionError
impl Eq for TypeCoercionError
impl StructuralPartialEq for TypeCoercionError
Auto Trait Implementations§
impl Freeze for TypeCoercionError
impl RefUnwindSafe for TypeCoercionError
impl Send for TypeCoercionError
impl Sync for TypeCoercionError
impl Unpin for TypeCoercionError
impl UnwindSafe for TypeCoercionError
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
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.