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

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

Converts a value into a Spanned value

Converts a value into a Spanned value, using an unknown Span

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.