[][src]Struct solana_libra_types::account_address::AccountAddress

pub struct 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]

Trait Implementations

impl Clone for AccountAddress[src]

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

Performs copy-assignment from source. Read more

impl Ord for AccountAddress[src]

fn max(self, other: Self) -> Self1.21.0[src]

Compares and returns the maximum of two values. Read more

fn min(self, other: Self) -> Self1.21.0[src]

Compares and returns the minimum of two values. Read more

fn clamp(self, min: Self, max: Self) -> Self[src]

🔬 This is a nightly-only experimental API. (clamp)

Restrict a value to a certain interval. Read more

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

impl Default for AccountAddress[src]

impl From<AccountAddress> for Vec<u8>[src]

impl<'_> From<&'_ AccountAddress> for Vec<u8>[src]

impl From<AccountAddress> for Bytes[src]

impl From<PublicKey> for AccountAddress[src]

impl<'_> From<&'_ AccountAddress> for String[src]

impl PartialOrd<AccountAddress> for AccountAddress[src]

impl PartialEq<AccountAddress> for AccountAddress[src]

impl Copy for AccountAddress[src]

impl Eq for AccountAddress[src]

impl Display for AccountAddress[src]

impl Debug for AccountAddress[src]

impl Hash for AccountAddress[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<'_> 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<&'_ [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<Vec<u8>> for AccountAddress[src]

type Error = Error

The type returned in the event of a conversion error.

fn try_from(bytes: Vec<u8>) -> Result<AccountAddress>[src]

Tries to convert the provided byte buffer into Address.

impl TryFrom<Bytes> for AccountAddress[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<String> for AccountAddress[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<Bech32> for AccountAddress[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<AccountAddress> for Bech32[src]

type Error = Error

The type returned in the event of a conversion error.

impl FromStr for AccountAddress[src]

type Err = Error

The associated error which can be returned from parsing.

impl LowerHex for AccountAddress[src]

impl CanonicalSerialize for AccountAddress[src]

impl CanonicalDeserialize for AccountAddress[src]

impl<'de> Deserialize<'de> for AccountAddress[src]

impl Serialize for AccountAddress[src]

impl CryptoHash for AccountAddress[src]

type Hasher = AccountAddressHasher

The associated Hasher type which comes with a unique salt for this type.

impl IntoProto for AccountAddress[src]

type ProtoType = Vec<u8>

The corresponding Protobuf type.

impl FromProto for AccountAddress[src]

type ProtoType = Vec<u8>

The corresponding Protobuf type.

impl Arbitrary for AccountAddress[src]

type Parameters = <[u8; 32] as Arbitrary>::Parameters

The type of parameters that [arbitrary_with] accepts for configuration of the generated [Strategy]. Parameters must implement [Default]. Read more

type Strategy = Map<(<[u8; 32] as Arbitrary>::Strategy,), fn(_: ([u8; 32],)) -> Self>

The type of [Strategy] used to generate values of type Self. Read more

fn arbitrary() -> Self::Strategy[src]

Generates a [Strategy] for producing arbitrary values of type the implementing type (Self). Read more

Auto Trait Implementations

Blanket Implementations

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

type Owned = T

The resulting type after obtaining ownership.

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

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

impl<T> ToString for T where
    T: Display + ?Sized
[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> 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> BorrowMut<T> for T where
    T: ?Sized
[src]

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

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

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> TestOnlyHash for T where
    T: Serialize + ?Sized

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> Clear for T where
    T: InitializableFromZeroed + ?Sized

impl<T> InitializableFromZeroed for T where
    T: Default

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> ToHex for T where
    T: AsRef<[u8]>, 
[src]

impl<T> ToBase32<Vec<u5>> for T where
    T: AsRef<[u8]>, 
[src]

fn to_base32(&self) -> Vec<u5>[src]

Convert base256 to base32, adds padding if necessary

impl<'f, T> CheckBase32<Vec<u5>> for T where
    T: AsRef<[u8]>, 
[src]

type Err = Error

Error type if conversion fails

impl<T> Erased for T

impl<T> SendSyncUnwindSafe for T where
    T: Send + Sync + UnwindSafe + ?Sized

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]