pub struct FastVecSet<T, P>{ /* private fields */ }Implementations§
Source§impl<T, P> FastVecSet<T, P>
impl<T, P> FastVecSet<T, P>
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: Rng>(&self, rng: R) -> Option<&T>
Source§impl FastVecSet<usize, Vec<usize>>
impl FastVecSet<usize, Vec<usize>>
pub fn new_vertex_set<G>(
g: &G,
) -> FastVecSet<Vertex<G>, DefaultVertexPropMut<G, usize>>where
G: WithVertexProp<usize>,
pub fn new_edge_set<G>(
g: &G,
) -> FastVecSet<Edge<G>, DefaultEdgePropMut<G, usize>>where
G: WithEdgeProp<usize>,
Trait Implementations§
Source§impl<'a, T, P> Extend<T> for FastVecSet<T, P>
impl<'a, T, P> Extend<T> for FastVecSet<T, P>
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
Source§impl<'a, T, P> IntoIterator for &'a FastVecSet<T, P>
impl<'a, T, P> IntoIterator for &'a FastVecSet<T, P>
Source§impl<T, P> IntoIterator for FastVecSet<T, P>
impl<T, P> IntoIterator for FastVecSet<T, P>
Auto Trait Implementations§
impl<T, P> Freeze for FastVecSet<T, P>where
P: Freeze,
impl<T, P> RefUnwindSafe for FastVecSet<T, P>where
P: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, P> Send for FastVecSet<T, P>
impl<T, P> Sync for FastVecSet<T, P>
impl<T, P> Unpin for FastVecSet<T, P>
impl<T, P> UnwindSafe for FastVecSet<T, P>where
P: UnwindSafe,
T: UnwindSafe,
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