Trait HeaderWriter

Source
pub trait HeaderWriter: Sized {
    // Required method
    fn write_header(&self, writer: &mut impl Writer);

    // Provided method
    fn to_header(&self) -> String { ... }
}

Required Methods§

Source

fn write_header(&self, writer: &mut impl Writer)

Provided Methods§

Source

fn to_header(&self) -> String

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§