pub trait BatcherNew {
// Required method
fn new_batcher(logger: Option<Logger>, operator_id: usize) -> Self;
}Expand description
A batcher that generic code can construct.
Batcher itself has no constructor, and differential’s operators take one as an FnOnce
argument. Wrappers such as CollectionExt::consolidate_named and mz_arrange build their
batcher through this trait, so their callers only name the type.
Required Methods§
Sourcefn new_batcher(logger: Option<Logger>, operator_id: usize) -> Self
fn new_batcher(logger: Option<Logger>, operator_id: usize) -> Self
Allocates an empty batcher, reporting its footprint against operator_id.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".