Struct VoronoiDiagram
pub struct VoronoiDiagram { /* private fields */ }Expand description
A Voronoi diagram record.
Implementations§
§impl VoronoiDiagram
impl VoronoiDiagram
pub const fn new(cells: Vec<VoronoiCell>) -> VoronoiDiagram
pub const fn new(cells: Vec<VoronoiCell>) -> VoronoiDiagram
Creates a Voronoi diagram from cells.
pub fn cells(&self) -> &[VoronoiCell]
pub fn cells(&self) -> &[VoronoiCell]
Returns the cells.
pub fn cell_count(&self) -> usize
pub fn cell_count(&self) -> usize
Returns the number of cells.
Trait Implementations§
§impl Clone for VoronoiDiagram
impl Clone for VoronoiDiagram
§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 more§impl Debug for VoronoiDiagram
impl Debug for VoronoiDiagram
§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