Struct fera::graph::sets::FastVecSet
source · Implementations§
source§impl<T, P> FastVecSet<T, P>where
P: IndexMut<T, Output = usize>,
T: Copy,
impl<T, P> FastVecSet<T, P>where
P: IndexMut<T, Output = usize>,
T: Copy,
pub fn insert(&mut self, item: T) -> bool
pub fn remove(&mut self, item: T) -> bool
pub fn clear(&mut self)
pub fn contains(&self, item: T) -> bool
pub fn iter(&self) -> Cloned<Iter<'_, T>>
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn choose<R>(&self, rng: R) -> Option<&T>where
R: Rng,
source§impl FastVecSet<usize, Vec<usize, Global>>
impl FastVecSet<usize, Vec<usize, Global>>
pub fn new_vertex_set<G>(
g: &G
) -> FastVecSet<<G as WithVertex>::Vertex, <G as WithVertexProp<usize>>::VertexProp>where
G: WithVertexProp<usize>,
pub fn new_edge_set<G>(
g: &G
) -> FastVecSet<<G as WithEdge>::Edge, <G as WithEdgeProp<usize>>::EdgeProp>where
G: WithEdgeProp<usize>,
Trait Implementations§
source§impl<'a, T, P> Extend<T> for FastVecSet<T, P>where
P: IndexMut<T, Output = usize>,
T: Copy,
impl<'a, T, P> Extend<T> for FastVecSet<T, P>where
P: IndexMut<T, Output = usize>,
T: Copy,
source§fn extend<I>(&mut self, iter: I)where
I: IntoIterator<Item = T>,
fn extend<I>(&mut self, iter: I)where
I: IntoIterator<Item = T>,
Extends a collection with the contents of an iterator. Read more
source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
🔬This is a nightly-only experimental API. (
extend_one
)Extends a collection with exactly one element.
source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
🔬This is a nightly-only experimental API. (
extend_one
)Reserves capacity in a collection for the given number of additional elements. Read more