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