pub struct Instructions { /* private fields */ }
Available on WebAssembly only.
Implementations§
Source§impl Instructions
impl Instructions
pub fn constructor() -> Instructions
pub fn push(&mut self, instruction: Instruction)
Trait Implementations§
Source§impl Default for Instructions
impl Default for Instructions
Source§fn default() -> Instructions
fn default() -> Instructions
Returns the “default value” for a type. Read more
Source§impl From<Instructions> for JsValue
impl From<Instructions> for JsValue
Source§fn from(value: Instructions) -> JsValue
fn from(value: Instructions) -> JsValue
Converts to this type from the input type.
Source§impl From<Instructions> for Vec<Instruction>
impl From<Instructions> for Vec<Instruction>
Source§fn from(instructions: Instructions) -> Vec<Instruction>
fn from(instructions: Instructions) -> Vec<Instruction>
Converts to this type from the input type.
Source§impl FromWasmAbi for Instructions
impl FromWasmAbi for Instructions
Source§impl IntoWasmAbi for Instructions
impl IntoWasmAbi for Instructions
Source§impl LongRefFromWasmAbi for Instructions
impl LongRefFromWasmAbi for Instructions
Source§type Anchor = RcRef<Instructions>
type Anchor = RcRef<Instructions>
Same as
RefFromWasmAbi::Anchor
Source§unsafe fn long_ref_from_abi(
js: <Instructions as LongRefFromWasmAbi>::Abi,
) -> <Instructions as LongRefFromWasmAbi>::Anchor
unsafe fn long_ref_from_abi( js: <Instructions as LongRefFromWasmAbi>::Abi, ) -> <Instructions as LongRefFromWasmAbi>::Anchor
Same as
RefFromWasmAbi::ref_from_abi
Source§impl OptionFromWasmAbi for Instructions
impl OptionFromWasmAbi for Instructions
Source§fn is_none(abi: &<Instructions as FromWasmAbi>::Abi) -> bool
fn is_none(abi: &<Instructions as FromWasmAbi>::Abi) -> bool
Tests whether the argument is a “none” instance. If so it will be
deserialized as
None
, and otherwise it will be passed to
FromWasmAbi
.Source§impl OptionIntoWasmAbi for Instructions
impl OptionIntoWasmAbi for Instructions
Source§fn none() -> <Instructions as IntoWasmAbi>::Abi
fn none() -> <Instructions as IntoWasmAbi>::Abi
Returns an ABI instance indicating “none”, which JS will interpret as
the
None
branch of this option. Read moreSource§impl RefFromWasmAbi for Instructions
impl RefFromWasmAbi for Instructions
Source§type Anchor = RcRef<Instructions>
type Anchor = RcRef<Instructions>
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§unsafe fn ref_from_abi(
js: <Instructions as RefFromWasmAbi>::Abi,
) -> <Instructions as RefFromWasmAbi>::Anchor
unsafe fn ref_from_abi( js: <Instructions as RefFromWasmAbi>::Abi, ) -> <Instructions as RefFromWasmAbi>::Anchor
Source§impl RefMutFromWasmAbi for Instructions
impl RefMutFromWasmAbi for Instructions
Source§type Anchor = RcRefMut<Instructions>
type Anchor = RcRefMut<Instructions>
Same as
RefFromWasmAbi::Anchor
Source§unsafe fn ref_mut_from_abi(
js: <Instructions as RefMutFromWasmAbi>::Abi,
) -> <Instructions as RefMutFromWasmAbi>::Anchor
unsafe fn ref_mut_from_abi( js: <Instructions as RefMutFromWasmAbi>::Abi, ) -> <Instructions as RefMutFromWasmAbi>::Anchor
Same as
RefFromWasmAbi::ref_from_abi
Source§impl TryFromJsValue for Instructions
impl TryFromJsValue for Instructions
Source§fn try_from_js_value(
value: JsValue,
) -> Result<Instructions, <Instructions as TryFromJsValue>::Error>
fn try_from_js_value( value: JsValue, ) -> Result<Instructions, <Instructions as TryFromJsValue>::Error>
Performs the conversion.
Source§impl VectorFromWasmAbi for Instructions
impl VectorFromWasmAbi for Instructions
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi( js: <Instructions as VectorFromWasmAbi>::Abi, ) -> Box<[Instructions]>
Source§impl VectorIntoWasmAbi for Instructions
impl VectorIntoWasmAbi for Instructions
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi( vector: Box<[Instructions]>, ) -> <Instructions as VectorIntoWasmAbi>::Abi
Auto Trait Implementations§
impl Freeze for Instructions
impl RefUnwindSafe for Instructions
impl Send for Instructions
impl Sync for Instructions
impl Unpin for Instructions
impl UnwindSafe for Instructions
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> Pointable for T
impl<T> Pointable for T
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::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
.