[][src]Struct mtots_core::Module

pub struct Module { /* fields omitted */ }

Implementations

impl Module[src]

pub fn new(
    name: RcStr,
    vars: Vec<RcStr>,
    doc: Option<RcStr>,
    docmap: Rc<HashMap<RcStr, RcStr>>
) -> Self
[src]

pub fn new_with_cells(
    name: RcStr,
    vars: Vec<(RcStr, Rc<RefCell<Value>>)>,
    doc: Option<RcStr>,
    docmap: Rc<HashMap<RcStr, RcStr>>
) -> Self
[src]

pub fn name(&self) -> &RcStr[src]

pub fn map(&self) -> &HashMap<RcStr, Rc<RefCell<Value>>>[src]

pub fn get<M: ?Sized>(&self, name: &M) -> Option<Value> where
    M: Hash + Eq + Debug,
    RcStr: Borrow<M>, 
[src]

pub fn doc(&self) -> &Option<RcStr>[src]

pub fn docmap(&self) -> &Rc<HashMap<RcStr, RcStr>>[src]

Trait Implementations

impl Debug for Module[src]

impl PartialEq<Module> for Module[src]

impl PartialOrd<Module> for Module[src]

Auto Trait Implementations

impl !RefUnwindSafe for Module

impl !Send for Module

impl !Sync for Module

impl Unpin for Module

impl !UnwindSafe for Module

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.