ScopeVar

Trait ScopeVar 

Source
pub trait ScopeVar:
    Any
    + Send
    + Sync {
    // Required methods
    fn as_any(&self) -> &dyn Any;
    fn as_any_mut(&mut self) -> &mut dyn Any;
    fn clone_box(&self) -> Box<dyn ScopeVar>;
}
Expand description

This traits defines variables that can be stored inside of an execution’s Scope.

Required Methods§

Source

fn as_any(&self) -> &dyn Any

Source

fn as_any_mut(&mut self) -> &mut dyn Any

Source

fn clone_box(&self) -> Box<dyn ScopeVar>

Trait Implementations§

Source§

impl Clone for Box<dyn ScopeVar>

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more

Implementors§

Source§

impl<T: Clone + Send + Sync + 'static> ScopeVar for T