Format

Trait Format 

Source
pub trait Format:
    'static
    + Send
    + Sync
    + Sized {
    type Kind: Kind;

    // Required method
    fn allocate(descriptor: &<Self::Kind as Kind>::FormatDescriptor) -> Self;
}
Expand description

A certain format of data.

Required Associated Types§

Source

type Kind: Kind

The kind of data that this format represents.

Required Methods§

Source

fn allocate(descriptor: &<Self::Kind as Kind>::FormatDescriptor) -> Self

Allocates a new object of this format for the provided descriptor with unspecified 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§