Skip to main content

StaticGenerator

Trait StaticGenerator 

Source
pub trait StaticGenerator {
    type Yield;
    type Return;

    // Required method
    fn static_resume(
        this: Anchor<&mut Self>,
    ) -> CoResult<Self::Yield, Self::Return>;
}

Required Associated Types§

Required Methods§

Source

fn static_resume(this: Anchor<&mut Self>) -> CoResult<Self::Yield, Self::Return>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§