ssa_traits

Trait CpsBuilder

Source
pub trait CpsBuilder<F: Func> {
    type Result;

    // Required method
    fn go<'a: 'b + 'c, 'b, 'c, R>(
        self,
        f: &'b mut F,
        k: F::Block,
        next: Box<dyn FnMut(&mut F, Self::Result, F::Block) -> Result<R> + 'c>,
    ) -> Box<dyn Iterator<Item = Result<R>> + 'a>;
}

Required Associated Types§

Required Methods§

Source

fn go<'a: 'b + 'c, 'b, 'c, R>( self, f: &'b mut F, k: F::Block, next: Box<dyn FnMut(&mut F, Self::Result, F::Block) -> Result<R> + 'c>, ) -> Box<dyn Iterator<Item = Result<R>> + 'a>

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.

Implementors§