Struct cml_chain_wasm::address::PointerAddress
source · pub struct PointerAddress(/* private fields */);Implementations§
source§impl PointerAddress
impl PointerAddress
pub fn new(network: u8, payment: &StakeCredential, stake: &Pointer) -> Self
pub fn to_address(&self) -> Address
pub fn from_address(address: &Address) -> Option<PointerAddress>
pub fn network_id(&self) -> u8
pub fn payment(&self) -> StakeCredential
pub fn stake(&self) -> Pointer
Trait Implementations§
source§impl AsRef<PointerAddress> for PointerAddress
impl AsRef<PointerAddress> for PointerAddress
source§fn as_ref(&self) -> &PointerAddress
fn as_ref(&self) -> &PointerAddress
Converts this type into a shared reference of the (usually inferred) input type.
source§impl Clone for PointerAddress
impl Clone for PointerAddress
source§fn clone(&self) -> PointerAddress
fn clone(&self) -> PointerAddress
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for PointerAddress
impl Debug for PointerAddress
source§impl From<PointerAddress> for JsValue
impl From<PointerAddress> for JsValue
source§fn from(value: PointerAddress) -> Self
fn from(value: PointerAddress) -> Self
Converts to this type from the input type.
source§impl From<PointerAddress> for PointerAddress
impl From<PointerAddress> for PointerAddress
source§fn from(native: PointerAddress) -> Self
fn from(native: PointerAddress) -> Self
Converts to this type from the input type.
source§impl FromWasmAbi for PointerAddress
impl FromWasmAbi for PointerAddress
source§impl Into<PointerAddress> for PointerAddress
impl Into<PointerAddress> for PointerAddress
source§fn into(self) -> PointerAddress
fn into(self) -> PointerAddress
Converts this type into the (usually inferred) input type.
source§impl IntoWasmAbi for PointerAddress
impl IntoWasmAbi for PointerAddress
source§impl OptionFromWasmAbi for PointerAddress
impl OptionFromWasmAbi for PointerAddress
source§impl OptionIntoWasmAbi for PointerAddress
impl OptionIntoWasmAbi for PointerAddress
source§impl RefFromWasmAbi for PointerAddress
impl RefFromWasmAbi for PointerAddress
§type Anchor = Ref<'static, PointerAddress>
type Anchor = Ref<'static, PointerAddress>
The type that holds the reference to
Self for the duration of the
invocation of the function that has an &Self parameter. This is
required to ensure that the lifetimes don’t persist beyond one function
call, and so that they remain anonymous.source§impl RefMutFromWasmAbi for PointerAddress
impl RefMutFromWasmAbi for PointerAddress
Auto Trait Implementations§
impl Freeze for PointerAddress
impl RefUnwindSafe for PointerAddress
impl Send for PointerAddress
impl Sync for PointerAddress
impl Unpin for PointerAddress
impl UnwindSafe for PointerAddress
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::Abisource§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi, except that it may throw and never
return in the case of Err.