devela 0.28.0

A development substrate of coherence.
Documentation
// devela::data::codec::bit::bin::field::examples
//
//! Defines [`BitfieldExample`]
//

crate::bitfield! {
    #[doc = crate::_tags!(example bit mem data_structure)]
    /// A compact packet header.
    #[doc = crate::_doc_meta!{location("data/codec")}]
    ///
    /// It has been generated with the [`bitfield!`][crate::bitfield] macro like this:
    /// ```
    /// # use devela::bitfield;
    /// bitfield! {
    ///     /// A compact packet header.
    ///     pub struct BitfieldExample(u16) {
    ///         KIND    = 0..=3;
    ///         VERSION = 4..=7;
    ///         LENGTH  = 8..=15;
    ///     }
    /// }
    /// ```
    pub struct BitfieldExample(u16) {
        KIND    = 0..=3;
        VERSION = 4..=7;
        LENGTH  = 8..=15;
    }
}