pub trait Batch<R>: Sized {
// Required method
fn run(self) -> Option<R>;
}
Expand description
An abstraction over compile-time and runtime batches.
Requires batch_ct
or batch_rt
.
The only thing which can be done with a value of Batch
-bounded
type is to .run()
it.
Useful as a bound on a function return type.
If the batch returned by a function is to be edited later
then consider using more precise bounds:
BatchCt
and BatchRt
.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.