pub struct WasmMech { /* private fields */ }
Implementations§
Source§impl WasmMech
impl WasmMech
pub fn new() -> Self
pub fn out_string(&self) -> String
pub fn clear(&mut self)
pub fn attach_repl(&mut self, repl_id: &str)
pub fn eval(&mut self, input: &str) -> String
pub fn add_clickable_event_listeners(&self)
pub fn init(&self)
pub fn render_values(&mut self)
pub fn render_codeblock_output_values(&mut self)
pub fn render_inline_values(&mut self)
pub fn run_program(&mut self, src: &str)
Trait Implementations§
Source§impl FromWasmAbi for WasmMech
impl FromWasmAbi for WasmMech
Source§impl IntoWasmAbi for WasmMech
impl IntoWasmAbi for WasmMech
Source§impl LongRefFromWasmAbi for WasmMech
impl LongRefFromWasmAbi for WasmMech
Source§impl OptionFromWasmAbi for WasmMech
impl OptionFromWasmAbi for WasmMech
Source§impl OptionIntoWasmAbi for WasmMech
impl OptionIntoWasmAbi for WasmMech
Source§impl RefFromWasmAbi for WasmMech
impl RefFromWasmAbi for WasmMech
Source§impl RefMutFromWasmAbi for WasmMech
impl RefMutFromWasmAbi for WasmMech
Source§impl TryFromJsValue for WasmMech
impl TryFromJsValue for WasmMech
Source§impl VectorFromWasmAbi for WasmMech
impl VectorFromWasmAbi for WasmMech
Source§impl VectorIntoWasmAbi for WasmMech
impl VectorIntoWasmAbi for WasmMech
impl SupportsConstructor for WasmMech
impl SupportsInstanceProperty for WasmMech
impl SupportsStaticProperty for WasmMech
Auto Trait Implementations§
impl Freeze for WasmMech
impl !RefUnwindSafe for WasmMech
impl !Send for WasmMech
impl !Sync for WasmMech
impl Unpin for WasmMech
impl !UnwindSafe for WasmMech
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
.Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self
from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self
is actually part of its subset T
(and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset
but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.