pub enum NativeScriptKind {
ScriptPubkey,
ScriptAll,
ScriptAny,
ScriptNOfK,
ScriptInvalidBefore,
ScriptInvalidHereafter,
}Variants§
Trait Implementations§
Source§impl From<NativeScriptKind> for JsValue
impl From<NativeScriptKind> for JsValue
Source§fn from(value: NativeScriptKind) -> Self
fn from(value: NativeScriptKind) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for NativeScriptKind
impl FromWasmAbi for NativeScriptKind
Source§impl IntoWasmAbi for NativeScriptKind
impl IntoWasmAbi for NativeScriptKind
Source§impl OptionFromWasmAbi for NativeScriptKind
impl OptionFromWasmAbi for NativeScriptKind
Source§impl OptionIntoWasmAbi for NativeScriptKind
impl OptionIntoWasmAbi for NativeScriptKind
Source§impl TryFromJsValue for NativeScriptKind
impl TryFromJsValue for NativeScriptKind
Source§fn try_from_js_value(
value: JsValue,
) -> Result<Self, <NativeScriptKind as TryFromJsValue>::Error>
fn try_from_js_value( value: JsValue, ) -> Result<Self, <NativeScriptKind as TryFromJsValue>::Error>
Performs the conversion.
Source§impl VectorFromWasmAbi for NativeScriptKind
impl VectorFromWasmAbi for NativeScriptKind
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[NativeScriptKind]>
Source§impl VectorIntoJsValue for NativeScriptKind
impl VectorIntoJsValue for NativeScriptKind
fn vector_into_jsvalue(vector: Box<[NativeScriptKind]>) -> JsValue
Source§impl VectorIntoWasmAbi for NativeScriptKind
impl VectorIntoWasmAbi for NativeScriptKind
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[NativeScriptKind]>) -> Self::Abi
Source§impl WasmDescribeVector for NativeScriptKind
impl WasmDescribeVector for NativeScriptKind
Auto Trait Implementations§
impl Freeze for NativeScriptKind
impl RefUnwindSafe for NativeScriptKind
impl Send for NativeScriptKind
impl Sync for NativeScriptKind
impl Unpin for NativeScriptKind
impl UnwindSafe for NativeScriptKind
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> 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.