BitMan

Trait BitMan 

Source
pub trait BitMan {
    // Required methods
    fn get_bit(self, bit: u32) -> bool;
    fn with_bit(self, bit: u32, value: bool) -> Self;
}

Required Methods§

Source

fn get_bit(self, bit: u32) -> bool

Source

fn with_bit(self, bit: u32, value: bool) -> Self

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 BitMan for u8

Source§

fn get_bit(self, bit: u32) -> bool

Source§

fn with_bit(self, bit: u32, value: bool) -> Self

Source§

impl BitMan for u16

Source§

fn get_bit(self, bit: u32) -> bool

Source§

fn with_bit(self, bit: u32, value: bool) -> Self

Source§

impl BitMan for u32

Source§

fn get_bit(self, bit: u32) -> bool

Source§

fn with_bit(self, bit: u32, value: bool) -> Self

Source§

impl BitMan for u64

Source§

fn get_bit(self, bit: u32) -> bool

Source§

fn with_bit(self, bit: u32, value: bool) -> Self

Source§

impl BitMan for u128

Source§

fn get_bit(self, bit: u32) -> bool

Source§

fn with_bit(self, bit: u32, value: bool) -> Self

Implementors§