Trait fixed_map::set::storage::SetStorage
source · pub trait SetStorage<T>: Sized {
type Iter<'this>: Iterator<Item = T>
where
Self: 'this;
type IntoIter: Iterator<Item = T>;
fn empty() -> Self;
fn len(&self) -> usize;
fn is_empty(&self) -> bool;
fn insert(&mut self, value: T) -> bool;
fn contains(&self, value: T) -> bool;
fn remove(&mut self, value: T) -> bool;
fn retain<F>(&mut self, f: F)
where
F: FnMut(T) -> bool;
fn clear(&mut self);
fn iter(&self) -> Self::Iter<'_>;
fn into_iter(self) -> Self::IntoIter;
}
Expand description
Required Associated Types
Required Methods
sourcefn insert(&mut self, value: T) -> bool
fn insert(&mut self, value: T) -> bool
This is the storage abstraction for Set::insert
.
sourcefn contains(&self, value: T) -> bool
fn contains(&self, value: T) -> bool
This is the storage abstraction for Set::contains
.
sourcefn remove(&mut self, value: T) -> bool
fn remove(&mut self, value: T) -> bool
This is the storage abstraction for Set::remove
.
sourcefn retain<F>(&mut self, f: F)where
F: FnMut(T) -> bool,
fn retain<F>(&mut self, f: F)where
F: FnMut(T) -> bool,
This is the storage abstraction for Set::retain
.
sourcefn clear(&mut self)
fn clear(&mut self)
This is the storage abstraction for Set::clear
.
sourcefn into_iter(self) -> Self::IntoIter
fn into_iter(self) -> Self::IntoIter
This is the storage abstraction for Set::into_iter
.