Trait BitTest

Source
pub trait BitTest {
    // Required method
    fn test(&self, idx: usize) -> bool;
}
Expand description

Test single bit. This trait should be implemented for all bit-set.

Required Methods§

Source

fn test(&self, idx: usize) -> bool

Tests if bit at specified index is set.

Implementations on Foreign Types§

Source§

impl BitTest for bool

Source§

fn test(&self, idx: usize) -> bool

Source§

impl BitTest for u8

Source§

fn test(&self, idx: usize) -> bool

Source§

impl BitTest for u16

Source§

fn test(&self, idx: usize) -> bool

Source§

impl BitTest for u32

Source§

fn test(&self, idx: usize) -> bool

Source§

impl BitTest for u64

Source§

fn test(&self, idx: usize) -> bool

Source§

impl BitTest for u128

Source§

fn test(&self, idx: usize) -> bool

Source§

impl<T> BitTest for Option<T>
where T: BitTest,

Source§

fn test(&self, idx: usize) -> bool

Source§

impl<T> BitTest for &T
where T: BitTest,

Source§

fn test(&self, idx: usize) -> bool

Source§

impl<T> BitTest for &mut T
where T: BitTest,

Source§

fn test(&self, idx: usize) -> bool

Source§

impl<T> BitTest for Box<T>
where T: BitTest,

Source§

fn test(&self, idx: usize) -> bool

Source§

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

Source§

fn test(&self, idx: usize) -> bool

Source§

impl<const N: usize> BitTest for [u16; N]

Source§

fn test(&self, idx: usize) -> bool

Source§

impl<const N: usize> BitTest for [u32; N]

Source§

fn test(&self, idx: usize) -> bool

Source§

impl<const N: usize> BitTest for [u64; N]

Source§

fn test(&self, idx: usize) -> bool

Source§

impl<const N: usize> BitTest for [u128; N]

Source§

fn test(&self, idx: usize) -> bool

Implementors§

Source§

impl<T> BitTest for Complement<T>
where T: BitTest,

Source§

impl<T, B, const N: usize> BitTest for Layered<T, B, N>

Source§

impl<T, U> BitTest for Difference<T, U>
where T: BitTest, U: BitTest,

Source§

impl<T, U> BitTest for Intersection<T, U>
where T: BitTest, U: BitTest,

Source§

impl<T, U> BitTest for Union<T, U>
where T: BitTest, U: BitTest,