pub enum PlainAbiType {
Uint(u16),
Int(u16),
Bool,
Address,
}Expand description
ABI type which has a fixed bits representation and therefore can be used as a map key.
Variants§
Uint(u16)
Unsigned integer of n bits.
Int(u16)
Signed integer of n bits.
Bool
Boolean.
Address
Internal address (IntAddr).
Implementations§
Trait Implementations§
Source§impl Clone for PlainAbiType
impl Clone for PlainAbiType
Source§fn clone(&self) -> PlainAbiType
fn clone(&self) -> PlainAbiType
Returns a duplicate 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 PlainAbiType
impl Debug for PlainAbiType
Source§impl Display for PlainAbiType
impl Display for PlainAbiType
Source§impl From<PlainAbiType> for AbiType
impl From<PlainAbiType> for AbiType
Source§fn from(value: PlainAbiType) -> Self
fn from(value: PlainAbiType) -> Self
Converts to this type from the input type.
Source§impl FromStr for PlainAbiType
impl FromStr for PlainAbiType
Source§impl Hash for PlainAbiType
impl Hash for PlainAbiType
Source§impl PartialEq for PlainAbiType
impl PartialEq for PlainAbiType
impl Copy for PlainAbiType
impl Eq for PlainAbiType
impl StructuralPartialEq for PlainAbiType
Auto Trait Implementations§
impl Freeze for PlainAbiType
impl RefUnwindSafe for PlainAbiType
impl Send for PlainAbiType
impl Sync for PlainAbiType
impl Unpin for PlainAbiType
impl UnwindSafe for PlainAbiType
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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
Compares
self to key and returns true if they are equal.