pub struct Builtin {
pub name: String,
pub body: fn(Vec<Expression>, &mut Environment) -> Result<Expression, Error>,
pub help: String,
}Fields§
§name: Stringname of the function
body: fn(Vec<Expression>, &mut Environment) -> Result<Expression, Error>function pointer for executing the function
help: Stringhelp string
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Builtin
impl RefUnwindSafe for Builtin
impl Send for Builtin
impl Sync for Builtin
impl Unpin for Builtin
impl UnwindSafe for Builtin
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