Trait binrw::meta::WriteMagic

source ·
pub trait WriteMagic {
    type MagicType;

    const MAGIC: Self::MagicType;
}
Expand description

Types that write a magic number when serialised.

This trait is automatically defined on derived types with a magic directive.

Required Associated Types§

source

type MagicType

The type of the magic number.

Required Associated Constants§

source

const MAGIC: Self::MagicType

The magic number.

Object Safety§

This trait is not object safe.

Implementors§