Module prelude

Source
Expand description

Import this to get everything into scope that you need for defining and using layouts.

§Example

use binary_layout::prelude::*;

Re-exports§

pub use super::BigEndian;
pub use super::Field;
pub use super::FieldCopyAccess;
pub use super::FieldReadExt;
pub use super::FieldSliceAccess;
pub use super::FieldWriteExt;
pub use super::InfallibleResultExt;
pub use super::LittleEndian;
pub use super::NativeEndian;
pub use super::NonZeroIsZeroError;

Macros§

binary_layout
This macro defines a data layout. Given such a layout, the Field or FieldView APIs can be used to access data based on it.
define_layoutDeprecated
Deprecated name for crate::binary_layout!. Please switch to crate::binary_layout!.