pub struct BuiltinFn {
pub name: String,
pub arity: u8,
pub func: Rc<dyn Fn(Vec<Value>) -> Value>,
}Expand description
Builtin function used in expressions
Fields§
§name: String§arity: u8§func: Rc<dyn Fn(Vec<Value>) -> Value>Trait Implementations§
Auto Trait Implementations§
impl Freeze for BuiltinFn
impl !RefUnwindSafe for BuiltinFn
impl !Send for BuiltinFn
impl !Sync for BuiltinFn
impl Unpin for BuiltinFn
impl !UnwindSafe for BuiltinFn
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