[−][src]Struct solana_libra_types::account_address::AccountAddress
A struct that represents an account address. Currently Public Key is used.
Methods
impl AccountAddress
[src]
pub fn new(address: [u8; 32]) -> Self
[src]
pub fn random() -> Self
[src]
pub fn short_str(&self) -> String
[src]
pub fn to_vec(&self) -> Vec<u8>
[src]
pub fn from_public_key<PublicKey: VerifyingKey>(public_key: &PublicKey) -> Self
[src]
pub fn from_hex_literal(literal: &str) -> Result<Self>
[src]
Trait Implementations
impl AsRef<[u8]> for AccountAddress
[src]
impl CanonicalDeserialize for AccountAddress
[src]
fn deserialize(deserializer: &mut impl CanonicalDeserializer) -> Result<Self>
[src]
impl CanonicalSerialize for AccountAddress
[src]
fn serialize(&self, serializer: &mut impl CanonicalSerializer) -> Result<()>
[src]
impl Clone for AccountAddress
[src]
fn clone(&self) -> AccountAddress
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for AccountAddress
[src]
impl CryptoHash for AccountAddress
[src]
type Hasher = AccountAddressHasher
The associated Hasher
type which comes with a unique salt for this type.
fn hash(&self) -> HashValue
[src]
impl Debug for AccountAddress
[src]
impl Default for AccountAddress
[src]
fn default() -> AccountAddress
[src]
impl<'de> Deserialize<'de> for AccountAddress
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Display for AccountAddress
[src]
impl Eq for AccountAddress
[src]
impl<'_> From<&'_ AccountAddress> for Vec<u8>
[src]
fn from(addr: &AccountAddress) -> Vec<u8>
[src]
impl<'_> From<&'_ AccountAddress> for String
[src]
fn from(addr: &AccountAddress) -> String
[src]
impl From<AccountAddress> for Vec<u8>
[src]
fn from(addr: AccountAddress) -> Vec<u8>
[src]
impl From<AccountAddress> for Bytes
[src]
fn from(addr: AccountAddress) -> Bytes
[src]
impl FromStr for AccountAddress
[src]
type Err = Error
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<Self>
[src]
impl Hash for AccountAddress
[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,
impl LowerHex for AccountAddress
[src]
impl Ord for AccountAddress
[src]
fn cmp(&self, other: &AccountAddress) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<AccountAddress> for AccountAddress
[src]
fn eq(&self, other: &AccountAddress) -> bool
[src]
fn ne(&self, other: &AccountAddress) -> bool
[src]
impl PartialOrd<AccountAddress> for AccountAddress
[src]
fn partial_cmp(&self, other: &AccountAddress) -> Option<Ordering>
[src]
fn lt(&self, other: &AccountAddress) -> bool
[src]
fn le(&self, other: &AccountAddress) -> bool
[src]
fn gt(&self, other: &AccountAddress) -> bool
[src]
fn ge(&self, other: &AccountAddress) -> bool
[src]
impl Serialize for AccountAddress
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralEq for AccountAddress
[src]
impl StructuralPartialEq for AccountAddress
[src]
impl<'_> TryFrom<&'_ [u8; 32]> for AccountAddress
[src]
type Error = Error
The type returned in the event of a conversion error.
fn try_from(bytes: &[u8; 32]) -> Result<AccountAddress>
[src]
Tries to convert the provided byte array into Address.
impl<'_> TryFrom<&'_ [u8]> for AccountAddress
[src]
type Error = Error
The type returned in the event of a conversion error.
fn try_from(bytes: &[u8]) -> Result<AccountAddress>
[src]
Tries to convert the provided byte array into Address.
impl TryFrom<AccountAddress> for Bech32
[src]
type Error = Error
The type returned in the event of a conversion error.
fn try_from(addr: AccountAddress) -> Result<Bech32>
[src]
impl TryFrom<Bech32> for AccountAddress
[src]
type Error = Error
The type returned in the event of a conversion error.
fn try_from(encoded_input: Bech32) -> Result<AccountAddress>
[src]
impl TryFrom<Bytes> for AccountAddress
[src]
type Error = Error
The type returned in the event of a conversion error.
fn try_from(bytes: Bytes) -> Result<AccountAddress>
[src]
impl TryFrom<String> for AccountAddress
[src]
type Error = Error
The type returned in the event of a conversion error.
fn try_from(s: String) -> Result<AccountAddress>
[src]
impl TryFrom<Vec<u8>> for AccountAddress
[src]
Auto Trait Implementations
impl RefUnwindSafe for AccountAddress
impl Send for AccountAddress
impl Sync for AccountAddress
impl Unpin for AccountAddress
impl UnwindSafe for AccountAddress
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,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<'f, T> CheckBase32<Vec<u5>> for T where
T: AsRef<[u8]>,
[src]
T: AsRef<[u8]>,
type Err = Error
Error type if conversion fails
fn check_base32(self) -> Result<Vec<u5>, <T as CheckBase32<Vec<u5>>>::Err>
[src]
impl<T> Clear for T where
T: InitializableFromZeroed + ?Sized,
T: InitializableFromZeroed + ?Sized,
fn clear(&mut self)
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> InitializableFromZeroed for T where
T: Default,
T: Default,
unsafe fn initialize(place: *mut T)
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> SendSyncUnwindSafe for T where
T: Send + Sync + UnwindSafe + ?Sized,
T: Send + Sync + UnwindSafe + ?Sized,
impl<T> TestOnlyHash for T where
T: Serialize + ?Sized,
[src]
T: Serialize + ?Sized,
fn test_only_hash(&self) -> HashValue
[src]
impl<T> ToBase32<Vec<u5>> for T where
T: AsRef<[u8]>,
[src]
T: AsRef<[u8]>,
impl<T> ToHex for T where
T: AsRef<[u8]>,
[src]
T: AsRef<[u8]>,
fn write_hex<W>(&self, w: &mut W) -> Result<(), Error> where
W: Write,
[src]
W: Write,
fn write_hex_upper<W>(&self, w: &mut W) -> Result<(), Error> where
W: Write,
[src]
W: Write,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
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.
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.
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>,