Module spinel_pack::prelude

source ·
Expand description

Prelude module intended for blanket inclusion to make the crate easier to use.

use spinel_pack::prelude::*;

Re-exports§

Macros§

  • Provides an automatic implementation of TryUnpack when wrapped around an implementation of TryOwnedUnpack.
  • In-line proc macro for parsing spinel-formatted data fields from a byte slice iterator.
  • In-line proc macro for writing spinel-formatted data fields to a type implementing std::io::Write.
  • In-line proc macro for determining the written length of spinel-formatted data fields.

Attribute Macros§

  • Attribute macro which takes a Spinel format string as an argument and automatically defines the TryPack/TryUnpack traits for the given struct.