pub struct PluginLocal;Expand description
Plugin-local state (WASM globals, tables, etc.)
Corresponds to Lean: def PluginLocal := Unit
Concrete (Unit) for derived instances - actual state is abstract. In Rust, we use an empty struct as the equivalent of Unit.
Trait Implementations§
Source§impl Clone for PluginLocal
impl Clone for PluginLocal
Source§fn clone(&self) -> PluginLocal
fn clone(&self) -> PluginLocal
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 PluginLocal
impl Debug for PluginLocal
Source§impl Default for PluginLocal
impl Default for PluginLocal
Source§fn default() -> PluginLocal
fn default() -> PluginLocal
Returns the “default value” for a type. Read more
Source§impl PartialEq for PluginLocal
impl PartialEq for PluginLocal
Source§fn eq(&self, other: &PluginLocal) -> bool
fn eq(&self, other: &PluginLocal) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for PluginLocal
impl Eq for PluginLocal
impl StructuralPartialEq for PluginLocal
Auto Trait Implementations§
impl Freeze for PluginLocal
impl RefUnwindSafe for PluginLocal
impl Send for PluginLocal
impl Sync for PluginLocal
impl Unpin for PluginLocal
impl UnsafeUnpin for PluginLocal
impl UnwindSafe for PluginLocal
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