Struct naia_shared::DiffMask
source · pub struct DiffMask { /* private fields */ }Implementations§
source§impl DiffMask
impl DiffMask
sourcepub fn bit(&self, index: u8) -> Option<bool>
pub fn bit(&self, index: u8) -> Option<bool>
Gets the bit at the specified position within the DiffMask
sourcepub fn set_bit(&mut self, index: u8, value: bool)
pub fn set_bit(&mut self, index: u8, value: bool)
Sets the bit at the specified position within the DiffMask
sourcepub fn byte_number(&self) -> u8
pub fn byte_number(&self) -> u8
Get the number of bytes required to represent the DiffMask
sourcepub fn nand(&mut self, other: &DiffMask)
pub fn nand(&mut self, other: &DiffMask)
Performs a NAND operation on the DiffMask, with another DiffMask
sourcepub fn or(&mut self, other: &DiffMask)
pub fn or(&mut self, other: &DiffMask)
Performs an OR operation on the DiffMask, with another DiffMask
sourcepub fn copy_contents(&mut self, other: &DiffMask)
pub fn copy_contents(&mut self, other: &DiffMask)
Copies the DiffMask into another DiffMask