Expand description
Prelude module intended for blanket inclusion to make the crate easier to use.
use spinel_pack::prelude::*;
Re-exports§
pub use super::TryOwnedUnpack as _;
pub use super::TryPack as _;
pub use super::TryPackAs as _;
pub use super::TryUnpack as _;
pub use super::TryUnpackAs as _;
Macros§
- impl_
try_ unpack_ for_ owned - Provides an automatic implementation of
TryUnpack
when wrapped around an implementation ofTryOwnedUnpack
. - spinel_
read - In-line proc macro for parsing spinel-formatted data fields from a byte slice iterator.
- spinel_
write - In-line proc macro for writing spinel-formatted data fields to a type
implementing
std::io::Write
. - spinel_
write_ len - In-line proc macro for determining the written length of spinel-formatted data fields.
Attribute Macros§
- spinel_
packed - Attribute macro which takes a Spinel format string as an argument
and automatically defines the
TryPack
/TryUnpack
traits for the given struct.