Trait sindra::scope::Scoped
[−]
[src]
pub trait Scoped<Sc: Default> { fn scope(&self) -> Option<Rc<RefCell<Sc>>>; fn set_scope(&mut self, _: Option<Rc<RefCell<Sc>>>); }
Trait for any object which has an associated scope.
Provides get / set access for object's scope.
Required Methods
fn scope(&self) -> Option<Rc<RefCell<Sc>>>
Accesses an Rc
pointer to the scope (if exists).
fn set_scope(&mut self, _: Option<Rc<RefCell<Sc>>>)
Ses the Rc
pointer to the scope, or None
if no scope should exist.