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