pub struct AddressId(/* private fields */);Implementations§
Source§impl AddressId
impl AddressId
Sourcepub fn to_raw_bytes(&self) -> Vec<u8> ⓘ
pub fn to_raw_bytes(&self) -> Vec<u8> ⓘ
- Direct raw bytes without any CBOR structure
Sourcepub fn from_raw_bytes(bytes: &[u8]) -> Result<AddressId, JsError>
pub fn from_raw_bytes(bytes: &[u8]) -> Result<AddressId, JsError>
- Parse from the direct raw bytes, without any CBOR structure
Source§impl AddressId
impl AddressId
pub fn new( addr_type: ByronAddrType, spending_data: &SpendingData, attrs: &AddrAttributes, ) -> Self
Trait Implementations§
Source§impl FromWasmAbi for AddressId
impl FromWasmAbi for AddressId
Source§impl IntoWasmAbi for AddressId
impl IntoWasmAbi for AddressId
Source§impl LongRefFromWasmAbi for AddressId
impl LongRefFromWasmAbi for AddressId
Source§impl OptionFromWasmAbi for AddressId
impl OptionFromWasmAbi for AddressId
Source§impl OptionIntoWasmAbi for AddressId
impl OptionIntoWasmAbi for AddressId
Source§impl RefFromWasmAbi for AddressId
impl RefFromWasmAbi for AddressId
Source§impl RefMutFromWasmAbi for AddressId
impl RefMutFromWasmAbi for AddressId
Source§impl TryFromJsValue for AddressId
impl TryFromJsValue for AddressId
Source§impl VectorFromWasmAbi for AddressId
impl VectorFromWasmAbi for AddressId
Source§impl VectorIntoWasmAbi for AddressId
impl VectorIntoWasmAbi for AddressId
impl SupportsConstructor for AddressId
impl SupportsInstanceProperty for AddressId
impl SupportsStaticProperty for AddressId
Auto Trait Implementations§
impl Freeze for AddressId
impl RefUnwindSafe for AddressId
impl Send for AddressId
impl Sync for AddressId
impl Unpin for AddressId
impl UnwindSafe for AddressId
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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,
Source§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.