[−][src]Enum casperlabs_contract_ffi::key::Key
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]
fn from_bytes(bytes: &[u8]) -> Result<(Self, &[u8]), Error>
[src]
impl Clone for Key
[src]
fn clone(&self) -> Key
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for Key
[src]
impl PartialEq<Key> for Key
[src]
impl Eq for Key
[src]
impl Ord for Key
[src]
fn cmp(&self, other: &Key) -> Ordering
[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]
fn partial_cmp(&self, other: &Key) -> Option<Ordering>
[src]
fn lt(&self, other: &Key) -> bool
[src]
fn le(&self, other: &Key) -> bool
[src]
fn gt(&self, other: &Key) -> bool
[src]
fn ge(&self, other: &Key) -> bool
[src]
impl<T> From<UPointer<T>> for Key
[src]
impl From<ContractPointer> for Key
[src]
fn from(c_ptr: ContractPointer) -> Self
[src]
impl Hash for Key
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl Copy for Key
[src]
impl AsRef<[u8]> for Key
[src]
Auto Trait Implementations
Blanket Implementations
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> From for T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,