pub struct Layered<T, B, const N: usize> { /* private fields */ }
Trait Implementations§
Source§impl<T, B, const N: usize> BitComplement for Layered<T, B, N>
impl<T, B, const N: usize> BitComplement for Layered<T, B, N>
type Output = Complement<Layered<T, B, N>>
fn complement(self) -> Complement<Self>
Source§impl<T, B, U, const N: usize> BitDifference<U> for Layered<T, B, N>
impl<T, B, U, const N: usize> BitDifference<U> for Layered<T, B, N>
type Output = Difference<Layered<T, B, N>, U>
Source§fn difference(self, rhs: U) -> Difference<Self, U>
fn difference(self, rhs: U) -> Difference<Self, U>
Returns bit-set has bits set for each index that has bit set in exactly one of two arguments.
Source§impl<T, B, U, const N: usize> BitIntersection<U> for Layered<T, B, N>
impl<T, B, U, const N: usize> BitIntersection<U> for Layered<T, B, N>
type Output = Intersection<Layered<T, B, N>, U>
Source§fn intersection(self, rhs: U) -> Intersection<Self, U>
fn intersection(self, rhs: U) -> Intersection<Self, U>
Returns bit-set with bits set for each index that has bit set in either of two arguments.
Source§impl<T, B, const N: usize> BitSearch for Layered<T, B, N>
impl<T, B, const N: usize> BitSearch for Layered<T, B, N>
Source§fn find_first_set(&self, lower_bound: usize) -> Option<usize>
fn find_first_set(&self, lower_bound: usize) -> Option<usize>
Searches for first bit set starting with
lower_bound
.
Returns index of first bit set. Read moreSource§fn find_set_in_range<R>(&self, range: R) -> Option<usize>where
R: RangeBounds<usize>,
fn find_set_in_range<R>(&self, range: R) -> Option<usize>where
R: RangeBounds<usize>,
Searches for bit set specified range.
Returns index of bit set. Read more
Source§impl<T, B, const N: usize> BitSetLimit for Layered<T, B, N>where
T: BitSetLimit,
B: BitSetLimit,
impl<T, B, const N: usize> BitSetLimit for Layered<T, B, N>where
T: BitSetLimit,
B: BitSetLimit,
Source§const MAX_SET_INDEX: usize
const MAX_SET_INDEX: usize
Largest possible bit index that can be set.
Any larger index will always be unset.
Setting larger index is now allowed. Read more
Source§impl<T, B, const N: usize> BitUnsetLimit for Layered<T, B, N>
impl<T, B, const N: usize> BitUnsetLimit for Layered<T, B, N>
Source§const MAX_UNSET_INDEX: usize = 18_446_744_073_709_551_615usize
const MAX_UNSET_INDEX: usize = 18_446_744_073_709_551_615usize
Largest possible bit index that can be unset.
Any larger index will always be set.
Unsetting larger index is now allowed. Read more
impl<T: Copy, B: Copy, const N: usize> Copy for Layered<T, B, N>
Auto Trait Implementations§
impl<T, B, const N: usize> Freeze for Layered<T, B, N>
impl<T, B, const N: usize> RefUnwindSafe for Layered<T, B, N>where
T: RefUnwindSafe,
B: RefUnwindSafe,
impl<T, B, const N: usize> Send for Layered<T, B, N>
impl<T, B, const N: usize> Sync for Layered<T, B, N>
impl<T, B, const N: usize> Unpin for Layered<T, B, N>
impl<T, B, const N: usize> UnwindSafe for Layered<T, B, N>where
T: UnwindSafe,
B: UnwindSafe,
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