pub enum PlainAbiValue {
Uint(u16, BigUint),
Int(u16, BigInt),
Bool(bool),
Address(Box<IntAddr>),
}Expand description
ABI value which has a fixed bits representation and therefore can be used as a map key.
Variants§
Uint(u16, BigUint)
Unsigned integer of n bits.
Int(u16, BigInt)
Signed integer of n bits.
Bool(bool)
Boolean.
Address(Box<IntAddr>)
Internal address (IntAddr).
Implementations§
Source§impl PlainAbiValue
impl PlainAbiValue
Source§impl PlainAbiValue
impl PlainAbiValue
Sourcepub fn has_type(&self, ty: &PlainAbiType) -> bool
pub fn has_type(&self, ty: &PlainAbiType) -> bool
Returns whether this value has the same type as the provided one.
Sourcepub fn display_type(&self) -> impl Display + '_
pub fn display_type(&self) -> impl Display + '_
Returns a printable object which will display a value type signature.
Trait Implementations§
Source§impl Clone for PlainAbiValue
impl Clone for PlainAbiValue
Source§fn clone(&self) -> PlainAbiValue
fn clone(&self) -> PlainAbiValue
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 PlainAbiValue
impl Debug for PlainAbiValue
Source§impl From<PlainAbiValue> for AbiValue
impl From<PlainAbiValue> for AbiValue
Source§fn from(value: PlainAbiValue) -> Self
fn from(value: PlainAbiValue) -> Self
Converts to this type from the input type.
Source§impl IntoAbi for PlainAbiValue
impl IntoAbi for PlainAbiValue
Source§impl IntoPlainAbi for PlainAbiValue
impl IntoPlainAbi for PlainAbiValue
Source§fn as_plain_abi(&self) -> PlainAbiValue
fn as_plain_abi(&self) -> PlainAbiValue
Returns a corresponding plain ABI value. Read more
Source§fn into_plain_abi(self) -> PlainAbiValuewhere
Self: Sized,
fn into_plain_abi(self) -> PlainAbiValuewhere
Self: Sized,
Converts into a corresponding plain ABI value.
Source§impl Ord for PlainAbiValue
impl Ord for PlainAbiValue
Source§fn cmp(&self, other: &PlainAbiValue) -> Ordering
fn cmp(&self, other: &PlainAbiValue) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for PlainAbiValue
impl PartialEq for PlainAbiValue
Source§impl PartialOrd for PlainAbiValue
impl PartialOrd for PlainAbiValue
Source§impl Store for PlainAbiValue
impl Store for PlainAbiValue
Source§fn store_into(
&self,
builder: &mut CellBuilder,
f: &mut dyn CellContext,
) -> Result<(), Error>
fn store_into( &self, builder: &mut CellBuilder, f: &mut dyn CellContext, ) -> Result<(), Error>
Tries to store itself into the cell builder.
impl Eq for PlainAbiValue
impl StructuralPartialEq for PlainAbiValue
Auto Trait Implementations§
impl Freeze for PlainAbiValue
impl RefUnwindSafe for PlainAbiValue
impl Send for PlainAbiValue
impl Sync for PlainAbiValue
impl Unpin for PlainAbiValue
impl UnwindSafe for PlainAbiValue
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> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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.