Trait ExprGeneratorAsync

Source
pub trait ExprGeneratorAsync<E> {
    // Required method
    async fn generate(
        &mut self,
        expr: &ESExpr<'_>,
    ) -> Result<(), GeneratorError<E>>;
}
Expand description

Defines ESExpr generation for binary file format

Required Methods§

Source

async fn generate(&mut self, expr: &ESExpr<'_>) -> Result<(), GeneratorError<E>>

Generate output for an expression

§Errors

Returns Err if an error occurs during generation.

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§

Source§

impl<'a, E: 'static, W: Write<E>> ExprGeneratorWrite<E> for ExprGenerator<'a, W, E>