Struct Layered

Source
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>

Source§

impl<T, B, U, const N: usize> BitDifference<U> for Layered<T, B, N>

Source§

type Output = Difference<Layered<T, B, N>, U>

Source§

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, const N: usize> BitEmpty for Layered<T, B, N>
where T: BitEmpty, B: BitEmpty,

Source§

fn empty() -> Self

Returns empty bitset for which all bits are unset.
Source§

impl<T, B, U, const N: usize> BitIntersection<U> for Layered<T, B, N>

Source§

type Output = Intersection<Layered<T, B, N>, U>

Source§

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>

Source§

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 more
Source§

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> BitSet for Layered<T, B, N>
where T: BitSet, B: BitSet,

Source§

unsafe fn set_unchecked(&mut self, idx: usize)

Set bit at specified index. Read more
Source§

fn set(&mut self, idx: usize)

Sets bit at specified index. Read more
Source§

impl<T, B, const N: usize> BitSetLimit for Layered<T, B, N>
where T: BitSetLimit, B: BitSetLimit,

Source§

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> BitTest for Layered<T, B, N>

Source§

fn test(&self, idx: usize) -> bool

Tests if bit at specified index is set.
Source§

impl<T, B, U, const N: usize> BitUnion<U> for Layered<T, B, N>

Source§

type Output = Union<Layered<T, B, N>, U>

Source§

fn union(self, rhs: U) -> Union<Self, U>

Returns bit-set with bits set for each index that has bit set in both of two arguments.
Source§

impl<T, B, const N: usize> BitUnset for Layered<T, B, N>

Source§

unsafe fn unset_unchecked(&mut self, idx: usize)

Unsets bit at specified index. Read more
Source§

fn unset(&mut self, idx: usize)

Unsets bit at specified index. Read more
Source§

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

Largest possible bit index that can be unset. Any larger index will always be set. Unsetting larger index is now allowed. Read more
Source§

impl<T: Clone, B: Clone, const N: usize> Clone for Layered<T, B, N>

Source§

fn clone(&self) -> Layered<T, B, N>

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<T: Debug, B: Debug, const N: usize> Debug for Layered<T, B, N>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

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>
where T: Freeze, B: Freeze,

§

impl<T, B, const N: usize> RefUnwindSafe for Layered<T, B, N>

§

impl<T, B, const N: usize> Send for Layered<T, B, N>
where T: Send, B: Send,

§

impl<T, B, const N: usize> Sync for Layered<T, B, N>
where T: Sync, B: Sync,

§

impl<T, B, const N: usize> Unpin for Layered<T, B, N>
where T: Unpin, B: Unpin,

§

impl<T, B, const N: usize> UnwindSafe for Layered<T, B, N>
where T: UnwindSafe, B: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.