Trait FileContentGenerator

Source
pub trait FileContentGenerator {
    // Required method
    fn generate_file_contents(&self, writer: impl Write) -> Result<()>;
}
Expand description

Trait for content generation.

Required Methods§

Source

fn generate_file_contents(&self, writer: impl Write) -> Result<()>

Generate file contents.

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§