pub struct AuxiliaryDataHash(/* private fields */);Implementations§
Source§impl AuxiliaryDataHash
impl AuxiliaryDataHash
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<AuxiliaryDataHash, JsError>
pub fn from_raw_bytes(bytes: &[u8]) -> Result<AuxiliaryDataHash, JsError>
- Parse from the direct raw bytes, without any CBOR structure
Trait Implementations§
Source§impl AsRef<AuxiliaryDataHash> for AuxiliaryDataHash
impl AsRef<AuxiliaryDataHash> for AuxiliaryDataHash
Source§fn as_ref(&self) -> &AuxiliaryDataHash
fn as_ref(&self) -> &AuxiliaryDataHash
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Clone for AuxiliaryDataHash
impl Clone for AuxiliaryDataHash
Source§fn clone(&self) -> AuxiliaryDataHash
fn clone(&self) -> AuxiliaryDataHash
Returns a duplicate 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 AuxiliaryDataHash
impl Debug for AuxiliaryDataHash
Source§impl From<AuxiliaryDataHash> for AuxiliaryDataHash
impl From<AuxiliaryDataHash> for AuxiliaryDataHash
Source§fn from(inner: AuxiliaryDataHash) -> Self
fn from(inner: AuxiliaryDataHash) -> Self
Converts to this type from the input type.
Source§impl From<AuxiliaryDataHash> for AuxiliaryDataHash
impl From<AuxiliaryDataHash> for AuxiliaryDataHash
Source§fn from(wrapper: AuxiliaryDataHash) -> AuxiliaryDataHash
fn from(wrapper: AuxiliaryDataHash) -> AuxiliaryDataHash
Converts to this type from the input type.
Source§impl From<AuxiliaryDataHash> for JsValue
impl From<AuxiliaryDataHash> for JsValue
Source§fn from(value: AuxiliaryDataHash) -> Self
fn from(value: AuxiliaryDataHash) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for AuxiliaryDataHash
impl FromWasmAbi for AuxiliaryDataHash
Source§impl IntoWasmAbi for AuxiliaryDataHash
impl IntoWasmAbi for AuxiliaryDataHash
Source§impl RefFromWasmAbi for AuxiliaryDataHash
impl RefFromWasmAbi for AuxiliaryDataHash
Source§type Anchor = RcRef<AuxiliaryDataHash>
type Anchor = RcRef<AuxiliaryDataHash>
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 TryFromJsValue for AuxiliaryDataHash
impl TryFromJsValue for AuxiliaryDataHash
Source§impl VectorFromWasmAbi for AuxiliaryDataHash
impl VectorFromWasmAbi for AuxiliaryDataHash
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[AuxiliaryDataHash]>
Source§impl VectorIntoJsValue for AuxiliaryDataHash
impl VectorIntoJsValue for AuxiliaryDataHash
fn vector_into_jsvalue(vector: Box<[AuxiliaryDataHash]>) -> JsValue
Source§impl VectorIntoWasmAbi for AuxiliaryDataHash
impl VectorIntoWasmAbi for AuxiliaryDataHash
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[AuxiliaryDataHash]>) -> Self::Abi
Source§impl WasmDescribeVector for AuxiliaryDataHash
impl WasmDescribeVector for AuxiliaryDataHash
impl SupportsConstructor for AuxiliaryDataHash
impl SupportsInstanceProperty for AuxiliaryDataHash
impl SupportsStaticProperty for AuxiliaryDataHash
Auto Trait Implementations§
impl Freeze for AuxiliaryDataHash
impl RefUnwindSafe for AuxiliaryDataHash
impl Send for AuxiliaryDataHash
impl Sync for AuxiliaryDataHash
impl Unpin for AuxiliaryDataHash
impl UnwindSafe for AuxiliaryDataHash
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> 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.