Skip to main content

Module on_disk_struct

Module on_disk_struct 

Source
Expand description

Macro to allow binary structures be read/stored from/to disk.

Macrosยง

impl_on_disk_struct_primitive ๐Ÿ”’
Implement OnDiskStruct for a primitive integer type.
impl_on_disk_struct_wrapped_primitive ๐Ÿ”’
Implement OnDiskStruct for a type wrapping a primitive type.
on_disk_struct ๐Ÿ”’
Implement OnDiskStruct for the contained struct definition.
on_disk_struct_helper ๐Ÿ”’
Helper macro for on_disk_struct.

Traitsยง

OnDiskStruct ๐Ÿ”’
A structure to be loaded from or stored on disk (e.g. qcow2 image header), in binary format.