Trait itybity::GetBit

source ·
pub trait GetBit<O>where
    O: BitOrder,{
    // Required method
    fn get_bit(&self, index: usize) -> bool;
}
Expand description

Trait for getting a bit at a given index.

Required Methods§

source

fn get_bit(&self, index: usize) -> bool

Returns the bit at the given index.

Panics

Implementations may panic if the provided index is out of bounds.

Implementations on Foreign Types§

source§

impl GetBit<Msb0> for &u16

source§

fn get_bit(&self, index: usize) -> bool

source§

impl<const N: usize, T, O> GetBit<O> for &[T; N]where T: GetBit<O> + BitLength, O: BitOrder,

source§

fn get_bit(&self, index: usize) -> bool

source§

impl<const N: usize, T, O> GetBit<O> for [T; N]where T: GetBit<O> + BitLength, O: BitOrder,

source§

fn get_bit(&self, index: usize) -> bool

source§

impl GetBit<Lsb0> for u16

source§

fn get_bit(&self, index: usize) -> bool

source§

impl GetBit<Lsb0> for &u128

source§

fn get_bit(&self, index: usize) -> bool

source§

impl GetBit<Lsb0> for u64

source§

fn get_bit(&self, index: usize) -> bool

source§

impl GetBit<Lsb0> for &u16

source§

fn get_bit(&self, index: usize) -> bool

source§

impl GetBit<Lsb0> for u32

source§

fn get_bit(&self, index: usize) -> bool

source§

impl GetBit<Lsb0> for &u8

source§

fn get_bit(&self, index: usize) -> bool

source§

impl<O> GetBit<O> for boolwhere O: BitOrder,

source§

fn get_bit(&self, index: usize) -> bool

source§

impl<T, O> GetBit<O> for [T]where T: GetBit<O> + BitLength, O: BitOrder,

source§

fn get_bit(&self, index: usize) -> bool

source§

impl GetBit<Lsb0> for usize

source§

fn get_bit(&self, index: usize) -> bool

source§

impl GetBit<Msb0> for u16

source§

fn get_bit(&self, index: usize) -> bool

source§

impl GetBit<Msb0> for u8

source§

fn get_bit(&self, index: usize) -> bool

source§

impl GetBit<Msb0> for &usize

source§

fn get_bit(&self, index: usize) -> bool

source§

impl GetBit<Msb0> for usize

source§

fn get_bit(&self, index: usize) -> bool

source§

impl<O> GetBit<O> for &boolwhere O: BitOrder,

source§

fn get_bit(&self, index: usize) -> bool

source§

impl GetBit<Lsb0> for &usize

source§

fn get_bit(&self, index: usize) -> bool

source§

impl GetBit<Msb0> for u64

source§

fn get_bit(&self, index: usize) -> bool

source§

impl GetBit<Msb0> for &u32

source§

fn get_bit(&self, index: usize) -> bool

source§

impl GetBit<Msb0> for u32

source§

fn get_bit(&self, index: usize) -> bool

source§

impl GetBit<Lsb0> for &u64

source§

fn get_bit(&self, index: usize) -> bool

source§

impl GetBit<Lsb0> for u8

source§

fn get_bit(&self, index: usize) -> bool

source§

impl GetBit<Lsb0> for &u32

source§

fn get_bit(&self, index: usize) -> bool

source§

impl<T, O> GetBit<O> for Vec<T>where T: GetBit<O> + BitLength, O: BitOrder,

source§

fn get_bit(&self, index: usize) -> bool

source§

impl GetBit<Msb0> for &u8

source§

fn get_bit(&self, index: usize) -> bool

source§

impl GetBit<Msb0> for &u128

source§

fn get_bit(&self, index: usize) -> bool

source§

impl GetBit<Lsb0> for u128

source§

fn get_bit(&self, index: usize) -> bool

source§

impl GetBit<Msb0> for &u64

source§

fn get_bit(&self, index: usize) -> bool

source§

impl GetBit<Msb0> for u128

source§

fn get_bit(&self, index: usize) -> bool

Implementors§