pub struct Bitmap { /* private fields */ }Available on crate feature
alloc only.Expand description
Bitmap for tracking present fields (supports up to 192 fields)
Implementations§
Source§impl Bitmap
impl Bitmap
Sourcepub fn get_set_fields(&self) -> ([u8; 192], usize)
pub fn get_set_fields(&self) -> ([u8; 192], usize)
Get all set field numbers (returns array and count) Returns (fields_array, count) where count indicates how many fields are actually set
Sourcepub fn to_bytes(&self) -> ([u8; 24], usize)
pub fn to_bytes(&self) -> ([u8; 24], usize)
Convert to bytes for transmission (returns array and length) Maximum size is 24 bytes (3 bitmaps)
Sourcepub fn from_bytes(bytes: &[u8]) -> Result<Self, &'static str>
pub fn from_bytes(bytes: &[u8]) -> Result<Self, &'static str>
Parse from bytes
Trait Implementations§
impl Eq for Bitmap
impl StructuralPartialEq for Bitmap
Auto Trait Implementations§
impl Freeze for Bitmap
impl RefUnwindSafe for Bitmap
impl Send for Bitmap
impl Sync for Bitmap
impl Unpin for Bitmap
impl UnsafeUnpin for Bitmap
impl UnwindSafe for Bitmap
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