Trait roach::ArchiveType

source ·
pub trait ArchiveType<K: 'static + ?Sized> {
    type Key: for<'a> BinaryConverter<'a, Target = K> + ?Sized;
    type Value: for<'a> DataLoad<'a> + ?Sized;

    const TYPE_NAME: &'static str = _;
}
Expand description

Defines a type of key-value pair which may be stored in an archive.

Required Associated Types§

source

type Key: for<'a> BinaryConverter<'a, Target = K> + ?Sized

The converter for the key type.

source

type Value: for<'a> DataLoad<'a> + ?Sized

The converter for the value type.

Provided Associated Constants§

source

const TYPE_NAME: &'static str = _

The type name which should be used to identify these key-value pairs in the archive.

Object Safety§

This trait is not object safe.

Implementors§