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

Accesses an Rc pointer to the scope (if exists).

Ses the Rc pointer to the scope, or None if no scope should exist.

Implementors