png::text_metadata

Trait EncodableTextChunk

Source
pub trait EncodableTextChunk {
    // Required method
    fn encode<W: Write>(&self, w: &mut W) -> Result<(), EncodingError>;
}
Expand description

A generalized text chunk trait

Required Methods§

Source

fn encode<W: Write>(&self, w: &mut W) -> Result<(), EncodingError>

Encode text chunk as Vec<u8> to a Write

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§