[−][src]Struct oasis_std::Address
A 160-bit little-endian hash address type.
Methods
impl Address
[src]
pub unsafe fn from_raw(bytes: *const u8) -> Address
[src]
Creates an Address
from a little-endian byte array.
pub fn as_ptr(&self) -> *const u8
[src]
pub const fn size() -> usize
[src]
pub fn path_repr(&self) -> PathBuf
[src]
pub fn zero() -> Address
[src]
Alias for Address::default()
.
Trait Implementations
impl AddressExt for Address
[src]
fn call(&self, ctx: &Context, payload: &[u8]) -> Result<Vec<u8>, RpcError>
[src]
fn transfer<B: Into<Balance>>(&self, value: B) -> Result<(), RpcError>
[src]
fn balance(&self) -> Balance
[src]
fn code(&self) -> Vec<u8>
[src]
impl AsRef<[u8]> for Address
[src]
impl BorshDeserialize for Address
[src]
fn deserialize<R>(reader: &mut R) -> Result<Address, Error> where
R: Read,
[src]
R: Read,
fn try_from_slice(v: &[u8]) -> Result<Self, Error>
[src]
impl BorshSerialize for Address
[src]
fn serialize<W>(&self, writer: &mut W) -> Result<(), Error> where
W: Write,
[src]
W: Write,
fn try_to_vec(&self) -> Result<Vec<u8>, Error>
[src]
impl Clone for Address
[src]
impl Copy for Address
[src]
impl Debug for Address
[src]
impl Default for Address
[src]
impl Display for Address
[src]
impl Eq for Address
[src]
impl FromStr for Address
[src]
type Err = FromHexError
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<Address, <Address as FromStr>::Err>
[src]
impl Hash for Address
[src]
fn hash<__H>(&self, state: &mut __H) where
__H: Hasher,
[src]
__H: Hasher,
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl LowerHex for Address
[src]
impl Ord for Address
[src]
fn cmp(&self, other: &Address) -> 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<Address> for Address
[src]
impl PartialOrd<Address> for Address
[src]
fn partial_cmp(&self, other: &Address) -> Option<Ordering>
[src]
fn lt(&self, other: &Address) -> bool
[src]
fn le(&self, other: &Address) -> bool
[src]
fn gt(&self, other: &Address) -> bool
[src]
fn ge(&self, other: &Address) -> bool
[src]
impl StructuralEq for Address
[src]
impl StructuralPartialEq for Address
[src]
Auto Trait Implementations
impl RefUnwindSafe for Address
impl Send for Address
impl Sync for Address
impl Unpin for Address
impl UnwindSafe for Address
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<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
fn equivalent(&self, key: &K) -> bool
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToHex for T where
T: AsRef<[u8]>,
[src]
T: AsRef<[u8]>,
fn encode_hex<U>(&self) -> U where
U: FromIterator<char>,
[src]
U: FromIterator<char>,
fn encode_hex_upper<U>(&self) -> U where
U: FromIterator<char>,
[src]
U: FromIterator<char>,
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<'a, T> TryFrom<&'a str> for T where
T: FromStr,
T: FromStr,
type Err = <T as FromStr>::Err
fn try_from(string: &'a str) -> Result<T, <T as TryFrom<&'a str>>::Err>
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<T, U> TryInto<U> for T where
U: TryFrom<T>,
U: TryFrom<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,