Struct rgeometry::data::IndexIntersectionSet
source · [−]pub struct IndexIntersectionSet { /* private fields */ }
Implementations
sourceimpl 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> where
R: Rng + ?Sized,
pub fn iter(&self) -> impl Iterator<Item = IndexIntersection> + '_
Trait Implementations
sourceimpl Index<IndexEdge> for IndexIntersectionSet
impl Index<IndexEdge> for IndexIntersectionSet
Auto Trait Implementations
impl RefUnwindSafe for IndexIntersectionSet
impl Send for IndexIntersectionSet
impl Sync for IndexIntersectionSet
impl Unpin for IndexIntersectionSet
impl UnwindSafe for IndexIntersectionSet
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more