Skip to main content

BitWidth

Trait BitWidth 

Source
pub trait BitWidth {
    // Required method
    fn bit_width(&self) -> usize;
}
Expand description

Required Methods§

Source

fn bit_width(&self) -> usize

Returns the bit width of the slice.

All elements stored in the slice must fit within this bit width.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<T: BitWidth + ?Sized> BitWidth for &T

Source§

impl<T: BitWidth + ?Sized> BitWidth for &mut T

Source§

impl<T: BitWidth + ?Sized> BitWidth for Box<T>

Source§

impl<W: Word, const N: usize> BitWidth for [W; N]

Source§

impl<W: Word> BitWidth for Vec<W>

Source§

impl<W: Word> BitWidth for [W]

Implementors§

Source§

impl<B: Backend<Word: Word>> BitWidth for BitFieldVec<B>

Source§

impl<B: Backend<Word: Word>> BitWidth for BitFieldVecU<B>

Source§

impl<B: Backend<Word: Word>> BitWidth for BitVec<B>