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 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PlainAbiType
Source§impl Debug for PlainAbiType
impl Debug for PlainAbiType
Source§impl Display for PlainAbiType
impl Display for PlainAbiType
impl Eq 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
Source§fn eq(&self, other: &PlainAbiType) -> bool
fn eq(&self, other: &PlainAbiType) -> bool
Tests for
self and other values to be equal, and is used by ==.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 UnsafeUnpin 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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.