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§
Required Methods§
sourcefn allocate(descriptor: &<Self::Kind as Kind>::FormatDescriptor) -> Self
fn allocate(descriptor: &<Self::Kind as Kind>::FormatDescriptor) -> Self
Allocates a new object of this format for the provided descriptor with unspecified contents.
Object Safety§
This trait is not object safe.