Struct packed_uints::PackedUints
source · pub struct PackedUints {
pub data: PackedEnum,
pub mask: usize,
pub length: usize,
}Fields§
§data: PackedEnum§mask: usize§length: usizeImplementations§
source§impl PackedUints
impl PackedUints
pub fn new(length: usize) -> Self
pub fn filled(length: usize, value: usize) -> Self
pub fn from(values: &[usize]) -> Self
pub fn iter<'a>(&'a self) -> Box<dyn Iterator<Item = usize> + 'a>
pub fn get(&self, i: usize) -> usize
pub fn set(&mut self, i: usize, value: usize)
Trait Implementations§
source§impl Clone for PackedUints
impl Clone for PackedUints
source§fn clone(&self) -> PackedUints
fn clone(&self) -> PackedUints
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl RefUnwindSafe for PackedUints
impl Send for PackedUints
impl Sync for PackedUints
impl Unpin for PackedUints
impl UnwindSafe for PackedUints
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