Trait dill::Scope

source ·
pub trait Scope {
    // Required methods
    fn get(&self) -> Option<Arc<dyn Any + Send + Sync>>;
    fn set(&self, inst: Arc<dyn Any + Send + Sync>);
}
Expand description

Controls the lifetime of an instance created by Builders

Required Methods§

source

fn get(&self) -> Option<Arc<dyn Any + Send + Sync>>

source

fn set(&self, inst: Arc<dyn Any + Send + Sync>)

Implementors§