Derive Macro bilge::FromBits

source ·
#[derive(FromBits)]
{
    // Attributes available to this derive:
    #[bitsize_internal]
    #[fallback]
}
Expand description

Generate an impl From<uN> for filled bitfields.

This should be used when your enum or enums nested in a struct fill their given bitsize or if you’re not using enums.