PackedStructInfo

Trait PackedStructInfo 

Source
pub trait PackedStructInfo {
    // Required method
    fn packed_bits() -> usize;
}
Expand description

Infos about a particular type that can be packaged.

Required Methods§

Source

fn packed_bits() -> usize

Number of bits that this structure occupies when being packed.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl PackedStructInfo for bool

Source§

impl PackedStructInfo for i8

Source§

impl PackedStructInfo for u8

Source§

impl PackedStructInfo for ()

Source§

impl<const N: usize> PackedStructInfo for [u8; N]

Implementors§

Source§

impl<T, B, I> PackedStructInfo for LsbInteger<T, B, I>
where B: NumberOfBits,

Source§

impl<T, B, I> PackedStructInfo for MsbInteger<T, B, I>
where B: NumberOfBits,

Source§

impl<V, B> PackedStructInfo for ReservedBits<V, B>
where B: NumberOfBits,