pub struct FiniteSet { /* private fields */ }Implementations§
Source§impl FiniteSet
impl FiniteSet
pub fn with_capacity(n: u32) -> Self
pub fn is_valid(&self, i: u32) -> bool
pub fn insert(&mut self, i: u32) -> bool
pub fn remove(&mut self, i: u32) -> bool
pub fn contains(&self, i: u32) -> bool
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn iter(&self) -> impl Iterator<Item = &u32> + '_
pub fn clear(&mut self)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FiniteSet
impl RefUnwindSafe for FiniteSet
impl Send for FiniteSet
impl Sync for FiniteSet
impl Unpin for FiniteSet
impl UnsafeUnpin for FiniteSet
impl UnwindSafe for FiniteSet
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