pub trait MetadataKind: Clone + Debug {
    type MetadataType: Sized;

    // Required methods
    fn new(metadata: Self::MetadataType) -> Self;
    fn materialize(path: &Utf8Path) -> Result<Self, MetadataMaterializeError>;
}
Expand description

Type parameter for MetadataWithRemap.

Required Associated Types§

source

type MetadataType: Sized

The type of metadata stored.

Required Methods§

source

fn new(metadata: Self::MetadataType) -> Self

Constructs a new MetadataKind from the given metadata.

source

fn materialize(path: &Utf8Path) -> Result<Self, MetadataMaterializeError>

Reads a path, resolving it into this data type.

Object Safety§

This trait is not object safe.

Implementors§