pub struct LambdaFn(pub Rc<dyn Fn(&[Value], Option<&mut IoContext>) -> Result<Value, String>>, pub String);Expand description
A compiled anonymous function closure with its source text.
The first field is the callable closure; the second is the display source
(e.g. @(x) x^2) used by format_value and the who command.
Tuple Fields§
§0: Rc<dyn Fn(&[Value], Option<&mut IoContext>) -> Result<Value, String>>§1: StringTrait Implementations§
Auto Trait Implementations§
impl Freeze for LambdaFn
impl !RefUnwindSafe for LambdaFn
impl !Send for LambdaFn
impl !Sync for LambdaFn
impl Unpin for LambdaFn
impl UnsafeUnpin for LambdaFn
impl !UnwindSafe for LambdaFn
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