[−][src]Struct mtots::Function
Implementations
impl Function
[src]
pub fn new(
freevar_bindings: Vec<Rc<RefCell<Value>>>,
code: Rc<Code>
) -> Function
[src]
freevar_bindings: Vec<Rc<RefCell<Value>>>,
code: Rc<Code>
) -> Function
pub fn full_name(&self) -> &RcStr
[src]
pub fn name(&self) -> &RcStr
[src]
pub fn apply_with_kwargs(
&self,
globals: &mut Globals,
args: Vec<Value>,
kwargs: Option<HashMap<Symbol, Value, RandomState>>
) -> Result<Value, ErrorIndicator>
[src]
&self,
globals: &mut Globals,
args: Vec<Value>,
kwargs: Option<HashMap<Symbol, Value, RandomState>>
) -> Result<Value, ErrorIndicator>
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Function
impl !Send for Function
impl !Sync for Function
impl Unpin for Function
impl !UnwindSafe for Function
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>,