pub struct Tree { /* private fields */ }
Expand description
Browser storage
Implementations§
Trait Implementations§
Source§impl Frame<Memory> for Tree
impl Frame<Memory> for Tree
fn active(&self) -> Option<[u8; 32]>
fn active_set(&self, key: [u8; 32], value: Vec<u8>) -> Option<Vec<u8>>
fn active_get(&self, key: &[u8]) -> Option<Vec<u8>>
fn push(&mut self, code_hash: [u8; 32], memory: Memory)
fn switch(&mut self, code_hash: [u8; 32]) -> Option<()>
fn back(&mut self) -> Option<()>
fn top(&mut self) -> Option<()>
Source§impl FromWasmAbi for Tree
impl FromWasmAbi for Tree
Source§impl IntoWasmAbi for Tree
impl IntoWasmAbi for Tree
Source§impl LongRefFromWasmAbi for Tree
impl LongRefFromWasmAbi for Tree
Source§impl OptionFromWasmAbi for Tree
impl OptionFromWasmAbi for Tree
Source§impl OptionIntoWasmAbi for Tree
impl OptionIntoWasmAbi for Tree
Source§impl RefFromWasmAbi for Tree
impl RefFromWasmAbi for Tree
Source§impl RefMutFromWasmAbi for Tree
impl RefMutFromWasmAbi for Tree
Source§impl TryFromJsValue for Tree
impl TryFromJsValue for Tree
Source§impl VectorFromWasmAbi for Tree
impl VectorFromWasmAbi for Tree
Source§impl VectorIntoWasmAbi for Tree
impl VectorIntoWasmAbi for Tree
impl SupportsConstructor for Tree
impl SupportsInstanceProperty for Tree
impl SupportsStaticProperty for Tree
Auto Trait Implementations§
impl Freeze for Tree
impl !RefUnwindSafe for Tree
impl !Send for Tree
impl !Sync for Tree
impl Unpin for Tree
impl !UnwindSafe for Tree
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> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.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
.