Trait Format

Source
pub trait Format {
    type Data;
    type Options;

    // Required method
    fn encode(
        dimensions: (u32, u32),
        sprites: &[SpriteAnchor],
        options: Self::Options,
    ) -> Self::Data;
}

Required Associated Types§

Required Methods§

Source

fn encode( dimensions: (u32, u32), sprites: &[SpriteAnchor], options: Self::Options, ) -> Self::Data

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§