Trait datafrost::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.

Object Safety§

This trait is not object safe.

Implementors§