pub struct Scratchpad { /* private fields */ }Expand description
Run-scoped typed storage shared by hooks.
Implementations§
Source§impl Scratchpad
impl Scratchpad
Sourcepub fn contains<T>(&self) -> boolwhere
T: WasmCompatSend + WasmCompatSync + 'static,
pub fn contains<T>(&self) -> boolwhere
T: WasmCompatSend + WasmCompatSync + 'static,
Whether a type is present.
Trait Implementations§
Source§impl Clone for Scratchpad
impl Clone for Scratchpad
Source§fn clone(&self) -> Scratchpad
fn clone(&self) -> Scratchpad
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Scratchpad
impl Debug for Scratchpad
Source§impl Default for Scratchpad
impl Default for Scratchpad
Source§fn default() -> Scratchpad
fn default() -> Scratchpad
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for Scratchpad
impl RefUnwindSafe for Scratchpad
impl Send for Scratchpad
impl Sync for Scratchpad
impl Unpin for Scratchpad
impl UnsafeUnpin for Scratchpad
impl UnwindSafe for Scratchpad
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