pub struct Tst { /* private fields */ }
Implementations§
Source§impl Tst
impl Tst
pub fn new() -> Self
pub fn insert(&mut self, key: &str, value: JsValue) -> JsValue
pub fn get(&self, key: &str) -> JsValue
pub fn remove(&mut self, key: &str) -> JsValue
pub fn count(&self) -> usize
pub fn clear(&mut self)
pub fn pretty_print(&self) -> String
pub fn visit(&self, callback: &Function, direction: Direction)
pub fn complete(&self, prefix: &str, callback: &Function, direction: Direction)
pub fn neighbor( &self, neighbor_key: &str, range: usize, callback: &Function, direction: Direction, )
pub fn crossword( &self, pattern: &str, joker: char, callback: &Function, direction: Direction, )
Trait Implementations§
Source§impl FromWasmAbi for Tst
impl FromWasmAbi for Tst
Source§impl IntoWasmAbi for Tst
impl IntoWasmAbi for Tst
Source§impl LongRefFromWasmAbi for Tst
impl LongRefFromWasmAbi for Tst
Source§impl OptionFromWasmAbi for Tst
impl OptionFromWasmAbi for Tst
Source§impl OptionIntoWasmAbi for Tst
impl OptionIntoWasmAbi for Tst
Source§impl RefFromWasmAbi for Tst
impl RefFromWasmAbi for Tst
Source§impl RefMutFromWasmAbi for Tst
impl RefMutFromWasmAbi for Tst
Source§impl TryFromJsValue for Tst
impl TryFromJsValue for Tst
Source§impl VectorFromWasmAbi for Tst
impl VectorFromWasmAbi for Tst
Source§impl VectorIntoWasmAbi for Tst
impl VectorIntoWasmAbi for Tst
impl SupportsConstructor for Tst
impl SupportsInstanceProperty for Tst
impl SupportsStaticProperty for Tst
Auto Trait Implementations§
impl Freeze for Tst
impl RefUnwindSafe for Tst
impl !Send for Tst
impl !Sync for Tst
impl Unpin for Tst
impl UnwindSafe for Tst
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,
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
.