Trait bit_struct::BitStructExt
source · pub trait BitStructExt: BitStruct<true> {
// Required method
fn exact_from(value: Self::Kind) -> Self;
}
Expand description
An extension trait for bit structs which can be safely made from any value in their underlying storage type.
Required Methods§
sourcefn exact_from(value: Self::Kind) -> Self
fn exact_from(value: Self::Kind) -> Self
Produce a bit struct from the given underlying storage