pub struct ExtendU32NimberSet { /* private fields */ }Trait Implementations§
Source§impl ExtendendNimberSet<u32> for ExtendU32NimberSet
impl ExtendendNimberSet<u32> for ExtendU32NimberSet
Source§fn without_largest(&self) -> u32
fn without_largest(&self) -> u32
Copy of self without the largest element.
Source§fn remove_nimber(&mut self, nimber: u8)
fn remove_nimber(&mut self, nimber: u8)
Remove exactly one nimber from the set:
either a given nimber v (if it is in the set) or the largest nimber.
Source§fn remove_nimber_hinted(&mut self, nimber: u8, without_largest: &u32)
fn remove_nimber_hinted(&mut self, nimber: u8, without_largest: &u32)
Remove exactly one nimber from the set:
either a given nimber v (if it is in the set) or the largest nimber.
(without_largest is passed for optimization)
Source§fn remove_largest_hinted(&mut self, without_largest: &u32)
fn remove_largest_hinted(&mut self, without_largest: &u32)
Remove the largest nimber from the set.
(without_largest is passed for optimization)
Source§fn only_element(&self) -> u8
fn only_element(&self) -> u8
Get the only (or any) element from the set.
Source§fn is_distinct_from(&self, other: &u32) -> bool
fn is_distinct_from(&self, other: &u32) -> bool
Check whether self is distinct from other.
Source§impl WithLowest for ExtendU32NimberSet
impl WithLowest for ExtendU32NimberSet
Source§fn with_lowest(n: u16) -> Self
fn with_lowest(n: u16) -> Self
Construct the set which includes the
n lowest nimbers, i.e. {0, 1, …, n-1}.Auto Trait Implementations§
impl Freeze for ExtendU32NimberSet
impl RefUnwindSafe for ExtendU32NimberSet
impl Send for ExtendU32NimberSet
impl Sync for ExtendU32NimberSet
impl Unpin for ExtendU32NimberSet
impl UnsafeUnpin for ExtendU32NimberSet
impl UnwindSafe for ExtendU32NimberSet
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more