pub struct ReducerPlan { /* private fields */ }Expand description
Reducers bound to the columns of one stat layout, in output order.
Implementations§
Source§impl ReducerPlan
impl ReducerPlan
Sourcepub fn bind(
columns: &StatColumns,
specs: &[ReducerSpec],
defaults: bool,
) -> Result<Self, ReducerError>
pub fn bind( columns: &StatColumns, specs: &[ReducerSpec], defaults: bool, ) -> Result<Self, ReducerError>
Binds the default reducers when defaults is set, then each of specs, to columns of columns.
The defaults come column by column. A reducer already bound, by default or by an earlier spec, is not bound again.
§Errors
Returns ReducerError::UnknownColumn for a spec whose column StatColumns::resolve cannot find.
Trait Implementations§
Source§impl Clone for ReducerPlan
impl Clone for ReducerPlan
Source§impl Debug for ReducerPlan
impl Debug for ReducerPlan
Source§impl Default for ReducerPlan
impl Default for ReducerPlan
Source§impl PartialEq for ReducerPlan
impl PartialEq for ReducerPlan
impl StructuralPartialEq for ReducerPlan
Auto Trait Implementations§
impl Freeze for ReducerPlan
impl RefUnwindSafe for ReducerPlan
impl Send for ReducerPlan
impl Sync for ReducerPlan
impl Unpin for ReducerPlan
impl UnsafeUnpin for ReducerPlan
impl UnwindSafe for ReducerPlan
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