pub struct Zero<T>(/* private fields */);
Expand description
Enforce value to be zero. This type will always encode as evm zero, and will fail on decoding if not zero.
Implementations§
Trait Implementations§
Source§impl<T: AbiDecodeZero> AbiDecode for Zero<T>
impl<T: AbiDecodeZero> AbiDecode for Zero<T>
Source§impl<T: AbiEncodeZero> AbiEncode for Zero<T>
impl<T: AbiEncodeZero> AbiEncode for Zero<T>
Source§impl<T: AbiType> AbiType for Zero<T>
impl<T: AbiType> AbiType for Zero<T>
Source§const SIGNATURE: SignatureUnit = T::SIGNATURE
const SIGNATURE: SignatureUnit = T::SIGNATURE
Signature for Ethereum ABI.
Source§const HEAD_WORDS: u32 = T::HEAD_WORDS
const HEAD_WORDS: u32 = T::HEAD_WORDS
How many AbiWords static data this type should occupy
Source§const IS_DYNAMIC: bool = T::IS_DYNAMIC
const IS_DYNAMIC: bool = T::IS_DYNAMIC
Is this a dynamic type, per spec.
impl<T> StructuralPartialEq for Zero<T>
Auto Trait Implementations§
impl<T> Freeze for Zero<T>
impl<T> RefUnwindSafe for Zero<T>where
T: RefUnwindSafe,
impl<T> Send for Zero<T>where
T: Send,
impl<T> Sync for Zero<T>where
T: Sync,
impl<T> Unpin for Zero<T>where
T: Unpin,
impl<T> UnwindSafe for Zero<T>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> AbiDecodeZero for T
impl<T> AbiDecodeZero for T
Source§impl<T> AbiEncodeZero for T
impl<T> AbiEncodeZero for T
fn enc_zero(out: &mut AbiEncoder)
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