Skip to main content

Representation

Trait Representation 

Source
pub trait Representation {
    type Output;

    // Required method
    fn generate(
        &self,
        stream: &EventStream,
    ) -> Result<Self::Output, RepresentationError>;
}

Required Associated Types§

Required Methods§

Source

fn generate( &self, stream: &EventStream, ) -> Result<Self::Output, RepresentationError>

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§