[][src]Enum casperlabs_contract_ffi::key::Key

#[repr(C)]
pub enum Key { Account([u8; 20]), Hash([u8; 32]), URef([u8; 32]), }

Variants

Account([u8; 20])Hash([u8; 32])URef([u8; 32])

Methods

impl Key[src]

pub fn to_u_ptr<T>(self) -> Option<UPointer<T>>[src]

pub fn to_c_ptr(self) -> Option<ContractPointer>[src]

Trait Implementations

impl ToBytes for Key[src]

impl FromBytes for Key[src]

impl Debug for Key[src]

impl PartialEq<Key> for Key[src]

impl Eq for Key[src]

impl Ord for Key[src]

fn max(self, other: Self) -> Self
1.21.0
[src]

Compares and returns the maximum of two values. Read more

fn min(self, other: Self) -> Self
1.21.0
[src]

Compares and returns the minimum of two values. Read more

impl PartialOrd<Key> for Key[src]

impl<T> From<UPointer<T>> for Key[src]

impl From<ContractPointer> for Key[src]

impl Hash for Key[src]

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl Copy for Key[src]

impl Clone for Key[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl AsRef<[u8]> for Key[src]

Auto Trait Implementations

impl Send for Key

impl Sync for Key

Blanket Implementations

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T