EraFileFormat

Trait EraFileFormat 

Source
pub trait EraFileFormat: Sized {
    type EraGroup;
    type Id: EraFileId;

    // Required methods
    fn version(&self) -> &Version;
    fn group(&self) -> &Self::EraGroup;
    fn id(&self) -> &Self::Id;
    fn new(group: Self::EraGroup, id: Self::Id) -> Self;
}
Expand description

Represents era file with generic content and identifier types

Required Associated Types§

Source

type EraGroup

Content group type

Source

type Id: EraFileId

The identifier type

Required Methods§

Source

fn version(&self) -> &Version

Get the version

Source

fn group(&self) -> &Self::EraGroup

Get the content group

Source

fn id(&self) -> &Self::Id

Get the file identifier

Source

fn new(group: Self::EraGroup, id: Self::Id) -> Self

Create a new instance

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.

Implementors§