[][src]Struct cosmwasm_std::HumanAddr

pub struct HumanAddr(pub String);

Implementations

impl HumanAddr[src]

pub fn as_str(&self) -> &str[src]

Trait Implementations

impl Clone for HumanAddr[src]

impl Debug for HumanAddr[src]

impl Default for HumanAddr[src]

impl Deref for HumanAddr[src]

Just like String, HumanAddr is a smart pointer to str. This implements *human_address for us, which is not very valuable directly because str has no known size and cannot be stored in variables. But it allows us to do &*human_address, returning a &str from a &HumanAddr. With deref coercions, this allows us to use &human_address whenever a &str is required.

type Target = str

The resulting type after dereferencing.

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

impl Display for HumanAddr[src]

impl Eq for HumanAddr[src]

impl<'_, '_> From<&'_ &'_ HumanAddr> for HumanAddr[src]

impl<'_> From<&'_ HumanAddr> for HumanAddr[src]

impl<'_> From<&'_ str> for HumanAddr[src]

impl From<String> for HumanAddr[src]

impl Hash for HumanAddr[src]

impl JsonSchema for HumanAddr[src]

impl<'_> PartialEq<&'_ str> for HumanAddr[src]

Implement HumanAddr == &str

impl PartialEq<HumanAddr> for HumanAddr[src]

impl PartialEq<HumanAddr> for str[src]

Implement str == HumanAddr, which gives us &str == &HumanAddr. Do we really need &HumanAddr comparisons?

impl<'_> PartialEq<HumanAddr> for &'_ str[src]

Implement &str == HumanAddr

impl PartialEq<str> for HumanAddr[src]

Implement HumanAddr == str, which gives us &HumanAddr == &str. Do we really need &HumanAddr comparisons?

impl Serialize for HumanAddr[src]

impl StructuralEq for HumanAddr[src]

impl StructuralPartialEq for HumanAddr[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

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

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

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

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

type Owned = T

The resulting type after obtaining ownership.

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.