[−][src]Struct casper_types::TransferAddr
A newtype wrapping a [[u8; TRANSFER_ADDR_LENGTH]
] which is the raw bytes of the transfer
address.
Implementations
impl TransferAddr
[src]
pub const fn new(value: [u8; 32]) -> TransferAddr
[src]
Constructs a new TransferAddr
instance from the raw bytes.
pub fn value(&self) -> [u8; 32]
[src]
Returns the raw bytes of the transfer address as an array.
pub fn as_bytes(&self) -> &[u8]
[src]
Returns the raw bytes of the transfer address as a slice
.
pub fn to_formatted_string(&self) -> String
[src]
Formats the TransferAddr
as a prefixed, hex-encoded string.
pub fn from_formatted_str(input: &str) -> Result<Self, FromStrError>
[src]
Parses a string formatted as per Self::to_formatted_string()
into a TransferAddr
.
Trait Implementations
impl AsRef<[u8]> for TransferAddr
[src]
impl CLTyped for TransferAddr
[src]
impl Clone for TransferAddr
[src]
pub fn clone(&self) -> TransferAddr
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for TransferAddr
[src]
impl DataSize for TransferAddr
[src]
pub const IS_DYNAMIC: bool
[src]
pub const STATIC_HEAP_SIZE: usize
[src]
pub fn estimate_heap_size(&self) -> usize
[src]
impl Debug for TransferAddr
[src]
impl Default for TransferAddr
[src]
pub fn default() -> TransferAddr
[src]
impl<'de> Deserialize<'de> for TransferAddr
[src]
pub fn deserialize<D: Deserializer<'de>>(
deserializer: D
) -> Result<Self, D::Error>
[src]
deserializer: D
) -> Result<Self, D::Error>
impl Display for TransferAddr
[src]
impl Eq for TransferAddr
[src]
impl From<TransferAddr> for Key
[src]
pub fn from(transfer_addr: TransferAddr) -> Key
[src]
impl FromBytes for TransferAddr
[src]
pub fn from_bytes(bytes: &[u8]) -> Result<(Self, &[u8]), Error>
[src]
pub fn from_vec(bytes: Vec<u8>) -> Result<(Self, Vec<u8>), Error>
[src]
impl Hash for TransferAddr
[src]
pub fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Ord for TransferAddr
[src]
pub fn cmp(&self, other: &TransferAddr) -> Ordering
[src]
#[must_use]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]
impl PartialEq<TransferAddr> for TransferAddr
[src]
pub fn eq(&self, other: &TransferAddr) -> bool
[src]
pub fn ne(&self, other: &TransferAddr) -> bool
[src]
impl PartialOrd<TransferAddr> for TransferAddr
[src]
pub fn partial_cmp(&self, other: &TransferAddr) -> Option<Ordering>
[src]
pub fn lt(&self, other: &TransferAddr) -> bool
[src]
pub fn le(&self, other: &TransferAddr) -> bool
[src]
pub fn gt(&self, other: &TransferAddr) -> bool
[src]
pub fn ge(&self, other: &TransferAddr) -> bool
[src]
impl Serialize for TransferAddr
[src]
impl StructuralEq for TransferAddr
[src]
impl StructuralPartialEq for TransferAddr
[src]
impl ToBytes for TransferAddr
[src]
Auto Trait Implementations
impl RefUnwindSafe for TransferAddr
[src]
impl Send for TransferAddr
[src]
impl Sync for TransferAddr
[src]
impl Unpin for TransferAddr
[src]
impl UnwindSafe for TransferAddr
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> 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.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,