Trait rs_graph::collections::ItemSet
source · pub trait ItemSet<I>where
I: Copy,{
// Required methods
fn len(&self) -> usize;
fn clear(&mut self);
fn insert(&mut self, u: I) -> bool;
fn remove(&mut self, u: I) -> bool;
fn contains(&self, u: I) -> bool;
// Provided method
fn is_empty(&self) -> bool { ... }
}
Expand description
A (finite) set of items (node or edges) of a graph.
Required Methods§
sourcefn insert(&mut self, u: I) -> bool
fn insert(&mut self, u: I) -> bool
Add one item to the set.
Return true
iff u
had not been contained in this set before.