[][src]Trait smart_access::Batch

#[must_use]pub trait Batch<R>: Sized {
    fn run(self) -> Option<R>;
}

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

fn run(self) -> Option<R>

Loading content...

Implementors

impl<CPS: Cps> Batch<()> for CpsBatch<CPS, ()>[src]

impl<CPS: Cps, Prev, F, R> Batch<R> for CpsBatch<CPS, (Prev, F)> where
    CPS: Cps,
    (Prev, F): RunBatch<CPS::View, Output = R>, 
[src]

impl<CPS: Cps, R> Batch<R> for CpsBatch<CPS, Vec<Box<dyn FnOnce(&mut CPS::View, Option<R>) -> R>>>[src]

Loading content...