pub struct RustFunction(/* private fields */);Implementations§
Source§impl RustFunction
impl RustFunction
pub fn new(f: ScopeableRustFn) -> RustFunction
pub fn execute(&self, args: Vec<SXRef>, env: &mut Env) -> EvalResult
Trait Implementations§
Source§impl Clone for RustFunction
impl Clone for RustFunction
Source§fn clone(&self) -> RustFunction
fn clone(&self) -> RustFunction
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RustFunction
impl Debug for RustFunction
Source§impl Display for RustFunction
impl Display for RustFunction
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<RustFunction> for SExpressionRef
impl From<RustFunction> for SExpressionRef
Source§fn from(f: RustFunction) -> Self
fn from(f: RustFunction) -> Self
Converts to this type from the input type.
Source§impl PartialEq for RustFunction
impl PartialEq for RustFunction
Auto Trait Implementations§
impl Freeze for RustFunction
impl RefUnwindSafe for RustFunction
impl Send for RustFunction
impl Sync for RustFunction
impl Unpin for RustFunction
impl UnwindSafe for RustFunction
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