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