pub struct IndexIntersectionSet { /* private fields */ }
Implementations§
source§impl IndexIntersectionSet
impl IndexIntersectionSet
sourcepub fn new(vertices: usize) -> IndexIntersectionSet
pub fn new(vertices: usize) -> IndexIntersectionSet
O(n^2)
pub fn push(&mut self, isect: IndexIntersection)
pub fn remove_all(&mut self, edge: impl Into<IndexEdge>)
pub fn random<R>(&mut self, rng: &mut R) -> Option<IndexIntersection>
pub fn iter(&self) -> impl Iterator<Item = IndexIntersection> + '_
Trait Implementations§
source§impl Index<IndexEdge> for IndexIntersectionSet
impl Index<IndexEdge> for IndexIntersectionSet
Auto Trait Implementations§
impl Freeze for IndexIntersectionSet
impl RefUnwindSafe for IndexIntersectionSet
impl Send for IndexIntersectionSet
impl Sync for IndexIntersectionSet
impl Unpin for IndexIntersectionSet
impl UnwindSafe for IndexIntersectionSet
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