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