pub struct VoronoiDiagram { /* private fields */ }Expand description
A Voronoi diagram record.
Implementations§
Source§impl VoronoiDiagram
impl VoronoiDiagram
Sourcepub const fn new(cells: Vec<VoronoiCell>) -> Self
pub const fn new(cells: Vec<VoronoiCell>) -> Self
Creates a Voronoi diagram from cells.
Sourcepub fn cells(&self) -> &[VoronoiCell]
pub fn cells(&self) -> &[VoronoiCell]
Returns the cells.
Sourcepub fn cell_count(&self) -> usize
pub fn cell_count(&self) -> usize
Returns the number of cells.
Trait Implementations§
Source§impl Clone for VoronoiDiagram
impl Clone for VoronoiDiagram
Source§fn clone(&self) -> VoronoiDiagram
fn clone(&self) -> VoronoiDiagram
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for VoronoiDiagram
impl Debug for VoronoiDiagram
Source§impl PartialEq for VoronoiDiagram
impl PartialEq for VoronoiDiagram
impl StructuralPartialEq for VoronoiDiagram
Auto Trait Implementations§
impl Freeze for VoronoiDiagram
impl RefUnwindSafe for VoronoiDiagram
impl Send for VoronoiDiagram
impl Sync for VoronoiDiagram
impl Unpin for VoronoiDiagram
impl UnsafeUnpin for VoronoiDiagram
impl UnwindSafe for VoronoiDiagram
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