Struct cml_chain_wasm::byron::utils::ByronScript
source · pub struct ByronScript(/* private fields */);Implementations§
source§impl ByronScript
impl ByronScript
pub fn to_raw_bytes(&self) -> Vec<u8>
pub fn to_bech32(&self, prefix: &str) -> Result<String, JsError>
pub fn to_hex(&self) -> String
pub fn from_bech32(bech32_str: &str) -> Result<ByronScript, JsError>
pub fn from_hex(input: &str) -> Result<ByronScript, JsError>
pub fn from_raw_bytes(bytes: &[u8]) -> Result<ByronScript, JsError>
Trait Implementations§
source§impl AsRef<ByronScript> for ByronScript
impl AsRef<ByronScript> for ByronScript
source§fn as_ref(&self) -> &ByronScript
fn as_ref(&self) -> &ByronScript
Converts this type into a shared reference of the (usually inferred) input type.
source§impl Clone for ByronScript
impl Clone for ByronScript
source§fn clone(&self) -> ByronScript
fn clone(&self) -> ByronScript
Returns a copy 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 ByronScript
impl Debug for ByronScript
source§impl From<ByronScript> for ByronScript
impl From<ByronScript> for ByronScript
source§fn from(inner: ByronScript) -> Self
fn from(inner: ByronScript) -> Self
Converts to this type from the input type.
source§impl From<ByronScript> for ByronScript
impl From<ByronScript> for ByronScript
source§fn from(wrapper: ByronScript) -> ByronScript
fn from(wrapper: ByronScript) -> ByronScript
Converts to this type from the input type.
source§impl From<ByronScript> for JsValue
impl From<ByronScript> for JsValue
source§fn from(value: ByronScript) -> Self
fn from(value: ByronScript) -> Self
Converts to this type from the input type.
source§impl FromWasmAbi for ByronScript
impl FromWasmAbi for ByronScript
source§impl IntoWasmAbi for ByronScript
impl IntoWasmAbi for ByronScript
source§impl OptionFromWasmAbi for ByronScript
impl OptionFromWasmAbi for ByronScript
source§impl OptionIntoWasmAbi for ByronScript
impl OptionIntoWasmAbi for ByronScript
source§impl RefFromWasmAbi for ByronScript
impl RefFromWasmAbi for ByronScript
§type Anchor = Ref<'static, ByronScript>
type Anchor = Ref<'static, ByronScript>
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 ByronScript
impl RefMutFromWasmAbi for ByronScript
Auto Trait Implementations§
impl Freeze for ByronScript
impl RefUnwindSafe for ByronScript
impl Send for ByronScript
impl Sync for ByronScript
impl Unpin for ByronScript
impl UnwindSafe for ByronScript
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> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
§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.