[−][src]Struct mtots_core::Module
Implementations
impl Module
[src]
pub fn new(
name: RcStr,
doc: Option<RcStr>,
map: HMap<Symbol, Rc<RefCell<Value>>>
) -> Rc<Module>
[src]
name: RcStr,
doc: Option<RcStr>,
map: HMap<Symbol, Rc<RefCell<Value>>>
) -> Rc<Module>
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]
&self,
globals: &mut Globals,
name: Symbol
) -> EvalResult<Option<RcStr>>
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
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,