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.
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.