Trait 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§

Source

fn exact_from(value: Self::Kind) -> Self

Produce a bit struct from the given underlying storage

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.

Implementors§

Source§

impl<T: BitStruct<true>> BitStructExt for T