pub enum Function {
Lisp(LispFunction),
Rust(RustFunction),
}
Variants§
Lisp(LispFunction)
Rust(RustFunction)
Implementations§
Source§impl Function
impl Function
pub fn execute(&self, args: Vec<SXRef>, env: &mut Env) -> EvalResult
pub fn lisp_function(args: Vec<String>, definition: SXRef) -> Function
pub fn rust_function(f: RustFunction) -> Self
Trait Implementations§
Source§impl From<Function> for SExpression
impl From<Function> for SExpression
Source§impl From<Function> for SExpressionRef
impl From<Function> for SExpressionRef
Source§impl From<LispFunction> for Function
impl From<LispFunction> for Function
Source§fn from(l: LispFunction) -> Self
fn from(l: LispFunction) -> Self
Converts to this type from the input type.
Source§impl From<RustFunction> for Function
impl From<RustFunction> for Function
Source§fn from(f: RustFunction) -> Self
fn from(f: RustFunction) -> Self
Converts to this type from the input type.
Source§impl From<SExpressionRef> for Function
impl From<SExpressionRef> for Function
Auto Trait Implementations§
impl Freeze for Function
impl RefUnwindSafe for Function
impl !Send for Function
impl !Sync for Function
impl Unpin for Function
impl UnwindSafe for Function
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more