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
Trait Implementations§
source§impl PartialEq for DiffMask
impl PartialEq for DiffMask
impl Eq for DiffMask
impl StructuralEq for DiffMask
impl StructuralPartialEq for DiffMask
Auto Trait Implementations§
impl RefUnwindSafe for DiffMask
impl Send for DiffMask
impl Sync for DiffMask
impl Unpin for DiffMask
impl UnwindSafe for DiffMask
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more