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) -> AuxiliaryDataHash
fn from(inner: 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) -> JsValue
fn from(value: AuxiliaryDataHash) -> JsValue
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 LongRefFromWasmAbi for AuxiliaryDataHash
impl LongRefFromWasmAbi for AuxiliaryDataHash
Source§type Anchor = RcRef<AuxiliaryDataHash>
type Anchor = RcRef<AuxiliaryDataHash>
Same as
RefFromWasmAbi::AnchorSource§unsafe fn long_ref_from_abi(
js: <AuxiliaryDataHash as LongRefFromWasmAbi>::Abi,
) -> <AuxiliaryDataHash as LongRefFromWasmAbi>::Anchor
unsafe fn long_ref_from_abi( js: <AuxiliaryDataHash as LongRefFromWasmAbi>::Abi, ) -> <AuxiliaryDataHash as LongRefFromWasmAbi>::Anchor
Same as
RefFromWasmAbi::ref_from_abiSource§impl OptionFromWasmAbi for AuxiliaryDataHash
impl OptionFromWasmAbi for AuxiliaryDataHash
Source§fn is_none(abi: &<AuxiliaryDataHash as FromWasmAbi>::Abi) -> bool
fn is_none(abi: &<AuxiliaryDataHash as FromWasmAbi>::Abi) -> bool
Tests whether the argument is a “none” instance. If so it will be
deserialized as
None, and otherwise it will be passed to
FromWasmAbi.Source§impl OptionIntoWasmAbi for AuxiliaryDataHash
impl OptionIntoWasmAbi for AuxiliaryDataHash
Source§fn none() -> <AuxiliaryDataHash as IntoWasmAbi>::Abi
fn none() -> <AuxiliaryDataHash as IntoWasmAbi>::Abi
Returns an ABI instance indicating “none”, which JS will interpret as
the
None branch of this option. Read moreSource§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§unsafe fn ref_from_abi(
js: <AuxiliaryDataHash as RefFromWasmAbi>::Abi,
) -> <AuxiliaryDataHash as RefFromWasmAbi>::Anchor
unsafe fn ref_from_abi( js: <AuxiliaryDataHash as RefFromWasmAbi>::Abi, ) -> <AuxiliaryDataHash as RefFromWasmAbi>::Anchor
Source§impl RefMutFromWasmAbi for AuxiliaryDataHash
impl RefMutFromWasmAbi for AuxiliaryDataHash
Source§type Anchor = RcRefMut<AuxiliaryDataHash>
type Anchor = RcRefMut<AuxiliaryDataHash>
Same as
RefFromWasmAbi::AnchorSource§unsafe fn ref_mut_from_abi(
js: <AuxiliaryDataHash as RefMutFromWasmAbi>::Abi,
) -> <AuxiliaryDataHash as RefMutFromWasmAbi>::Anchor
unsafe fn ref_mut_from_abi( js: <AuxiliaryDataHash as RefMutFromWasmAbi>::Abi, ) -> <AuxiliaryDataHash as RefMutFromWasmAbi>::Anchor
Same as
RefFromWasmAbi::ref_from_abiSource§impl TryFromJsValue for AuxiliaryDataHash
impl TryFromJsValue for AuxiliaryDataHash
Source§fn try_from_js_value(
value: JsValue,
) -> Result<AuxiliaryDataHash, <AuxiliaryDataHash as TryFromJsValue>::Error>
fn try_from_js_value( value: JsValue, ) -> Result<AuxiliaryDataHash, <AuxiliaryDataHash as TryFromJsValue>::Error>
Performs the conversion.
Source§impl VectorFromWasmAbi for AuxiliaryDataHash
impl VectorFromWasmAbi for AuxiliaryDataHash
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi( js: <AuxiliaryDataHash as VectorFromWasmAbi>::Abi, ) -> Box<[AuxiliaryDataHash]>
Source§impl VectorIntoWasmAbi for AuxiliaryDataHash
impl VectorIntoWasmAbi for AuxiliaryDataHash
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi( vector: Box<[AuxiliaryDataHash]>, ) -> <AuxiliaryDataHash as VectorIntoWasmAbi>::Abi
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> 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.