pub unsafe trait TypedBitElem {
type Base;
const PROTO: BitProto;
// Required methods
fn bits_to_val(bits: usize) -> Self::Base;
fn val_to_bits(val: Self::Base) -> usize;
}Required Associated Constants§
Required Associated Types§
Required Methods§
fn bits_to_val(bits: usize) -> Self::Base
fn val_to_bits(val: Self::Base) -> usize
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 TypedBitElem for bool
Available on crate feature small_int_impls only.
impl TypedBitElem for bool
Available on crate feature
small_int_impls only.