Layered

Struct Layered 

Source
pub struct Layered<T, B, const N: usize> { /* private fields */ }
๐Ÿ‘ŽDeprecated: use bitsetium crate instead

Trait Implementationsยง

Sourceยง

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

Sourceยง

const UPPER_BOUND: u32

๐Ÿ‘ŽDeprecated: use bitsetium crate instead
Upper bound for this bitset indices. Implementation is expected to panic if index equal to or greter than UPPER_BOUND is speicifed.
Sourceยง

fn get(&self, index: u32) -> bool

๐Ÿ‘ŽDeprecated: use bitsetium crate instead
Returns bit state at specified index. Read more
Sourceยง

fn find_set(&self, lower_bound: u32) -> Option<u32>

๐Ÿ‘ŽDeprecated: use bitsetium crate instead
Returns index of first set bit at index equal to or greter than specified. Read more
Sourceยง

fn is_empty(&self) -> bool

๐Ÿ‘ŽDeprecated: use bitsetium crate instead
Returns true if no bit is set.
Sourceยง

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

Sourceยง

fn set(&mut self, index: u32, bit: bool)

๐Ÿ‘ŽDeprecated: use bitsetium crate instead
Sets bit state at specified index. 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, B, const N: usize> Default for Layered<T, B, N>
where T: Default + BitSet, B: Default + BitSet,

Sourceยง

fn default() -> Self

Returns the โ€œdefault valueโ€ for a type. Read more

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> 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, 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.