pub trait ReadMagic {
type MagicType;
const MAGIC: Self::MagicType;
}Expand description
Types that require a magic number when parsed.
This trait is automatically defined on derived types with a magic directive.
Required Associated Constants§
Required Associated Types§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".