Trait proc_bitfield::SetBit

source ·
pub trait SetBit {
    // Required method
    fn set_bit<const BIT: usize>(&mut self, value: bool);
}
Expand description

Modify a single bit inside a value in place.

Required Methods§

source

fn set_bit<const BIT: usize>(&mut self, value: bool)

Sets self’s specified bit to 1 if value is true, and 0 otherwise.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl SetBit for i8

source§

fn set_bit<const BIT: usize>(&mut self, value: bool)

source§

impl SetBit for i16

source§

fn set_bit<const BIT: usize>(&mut self, value: bool)

source§

impl SetBit for i32

source§

fn set_bit<const BIT: usize>(&mut self, value: bool)

source§

impl SetBit for i64

source§

fn set_bit<const BIT: usize>(&mut self, value: bool)

source§

impl SetBit for i128

source§

fn set_bit<const BIT: usize>(&mut self, value: bool)

source§

impl SetBit for isize

source§

fn set_bit<const BIT: usize>(&mut self, value: bool)

source§

impl SetBit for u8

source§

fn set_bit<const BIT: usize>(&mut self, value: bool)

source§

impl SetBit for u16

source§

fn set_bit<const BIT: usize>(&mut self, value: bool)

source§

impl SetBit for u32

source§

fn set_bit<const BIT: usize>(&mut self, value: bool)

source§

impl SetBit for u64

source§

fn set_bit<const BIT: usize>(&mut self, value: bool)

source§

impl SetBit for u128

source§

fn set_bit<const BIT: usize>(&mut self, value: bool)

source§

impl SetBit for usize

source§

fn set_bit<const BIT: usize>(&mut self, value: bool)

source§

impl SetBit for [i8]

source§

fn set_bit<const BIT: usize>(&mut self, value: bool)

source§

impl SetBit for [i16]

source§

fn set_bit<const BIT: usize>(&mut self, value: bool)

source§

impl SetBit for [i32]

source§

fn set_bit<const BIT: usize>(&mut self, value: bool)

source§

impl SetBit for [i64]

source§

fn set_bit<const BIT: usize>(&mut self, value: bool)

source§

impl SetBit for [i128]

source§

fn set_bit<const BIT: usize>(&mut self, value: bool)

source§

impl SetBit for [isize]

source§

fn set_bit<const BIT: usize>(&mut self, value: bool)

source§

impl SetBit for [u8]

source§

fn set_bit<const BIT: usize>(&mut self, value: bool)

source§

impl SetBit for [u16]

source§

fn set_bit<const BIT: usize>(&mut self, value: bool)

source§

impl SetBit for [u32]

source§

fn set_bit<const BIT: usize>(&mut self, value: bool)

source§

impl SetBit for [u64]

source§

fn set_bit<const BIT: usize>(&mut self, value: bool)

source§

impl SetBit for [u128]

source§

fn set_bit<const BIT: usize>(&mut self, value: bool)

source§

impl SetBit for [usize]

source§

fn set_bit<const BIT: usize>(&mut self, value: bool)

source§

impl<const N: usize> SetBit for [i8; N]

source§

fn set_bit<const BIT: usize>(&mut self, value: bool)

source§

impl<const N: usize> SetBit for [i16; N]

source§

fn set_bit<const BIT: usize>(&mut self, value: bool)

source§

impl<const N: usize> SetBit for [i32; N]

source§

fn set_bit<const BIT: usize>(&mut self, value: bool)

source§

impl<const N: usize> SetBit for [i64; N]

source§

fn set_bit<const BIT: usize>(&mut self, value: bool)

source§

impl<const N: usize> SetBit for [i128; N]

source§

fn set_bit<const BIT: usize>(&mut self, value: bool)

source§

impl<const N: usize> SetBit for [isize; N]

source§

fn set_bit<const BIT: usize>(&mut self, value: bool)

source§

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

source§

fn set_bit<const BIT: usize>(&mut self, value: bool)

source§

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

source§

fn set_bit<const BIT: usize>(&mut self, value: bool)

source§

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

source§

fn set_bit<const BIT: usize>(&mut self, value: bool)

source§

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

source§

fn set_bit<const BIT: usize>(&mut self, value: bool)

source§

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

source§

fn set_bit<const BIT: usize>(&mut self, value: bool)

source§

impl<const N: usize> SetBit for [usize; N]

source§

fn set_bit<const BIT: usize>(&mut self, value: bool)

Implementors§