1 2 3 4 5
/// A trait to allow for binrw types to provide a means of accessing their magic pub trait HasMagic { type MagicType; const MAGIC: Self::MagicType; }