[][src]Struct mtots_core::Module

pub struct Module { /* fields omitted */ }

Implementations

impl Module[src]

pub fn new(
    name: RcStr,
    doc: Option<RcStr>,
    map: HMap<Symbol, Rc<RefCell<Value>>>
) -> Rc<Module>
[src]

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

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

pub fn member_doc(
    &self,
    globals: &mut Globals,
    name: Symbol
) -> EvalResult<Option<RcStr>>
[src]

Looks up the documentation associated with a specific Module member. If the __doc_XX field is available, that will be returned, otherwise, if the value itself is a function or class, the documentation associated with the function or class with be returned

pub fn map(&mut self) -> &HMap<Symbol, Rc<RefCell<Value>>>[src]

pub fn keys(&self) -> impl Iterator<Item = &Symbol>[src]

pub fn map_clone(&self) -> HMap<Symbol, Value>[src]

pub fn get(&self, key: &Symbol) -> Option<Value>[src]

Trait Implementations

impl Debug 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.