struct Set {
ones: u64,
floating: u64,
weight: u64,
}
Fields§
§ones: u64
§floating: u64
§weight: u64
Implementations§
source§impl Set
impl Set
sourcefn from(address: u64, value: u64, ones: u64, floating: u64) -> Set
fn from(address: u64, value: u64, ones: u64, floating: u64) -> Set
The one bits are from the original address, plus any from the mask, less any that overlap with Xs.
sourcefn intersect(&self, other: &Set) -> Option<Set>
fn intersect(&self, other: &Set) -> Option<Set>
Sets are disjoint if any 2 one bits are different and there is no X in either set.
The intersection of two masks looks like:
First: 0011XXX
Second: 0X1X01X
Result: 001101X
fn size(&self) -> i64
Auto Trait Implementations§
impl Freeze for Set
impl RefUnwindSafe for Set
impl Send for Set
impl Sync for Set
impl Unpin for Set
impl UnwindSafe for Set
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