pub struct Operation<'a> {
pub grouper: Option<Box<dyn Fn(usize, &Value) -> Result<String, ShellError> + Send>>,
pub splitter: Option<Box<dyn Fn(usize, &Value) -> Result<String, ShellError> + Send>>,
pub format: &'a Option<Box<dyn Fn(&Value, String) -> Result<String, ShellError>>>,
pub eval: &'a Option<Box<dyn Fn(usize, &Value) -> Result<Value, ShellError> + Send>>,
pub reduction: &'a Reduction,
}
Fields
grouper: Option<Box<dyn Fn(usize, &Value) -> Result<String, ShellError> + Send>>
splitter: Option<Box<dyn Fn(usize, &Value) -> Result<String, ShellError> + Send>>
format: &'a Option<Box<dyn Fn(&Value, String) -> Result<String, ShellError>>>
eval: &'a Option<Box<dyn Fn(usize, &Value) -> Result<Value, ShellError> + Send>>
reduction: &'a Reduction
Auto Trait Implementations
impl<'a> !RefUnwindSafe for Operation<'a>
impl<'a> !Send for Operation<'a>
impl<'a> !Sync for Operation<'a>
impl<'a> Unpin for Operation<'a>
impl<'a> !UnwindSafe for Operation<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more