[][src]Enum voronoice::ClipBehavior

pub enum ClipBehavior {
    None,
    RemoveSitesOutsideBoundingBoxOnly,
    Clip,
}

Defines how Voronoi generation will handle clipping of Voronoi cell edges within the bounding box.

Clipping is necessary to guarantee that all Voronoi vertices are within the bounding box boundary.

Variants

None

No clipping will be performed. Any sites outside the bounding box will still be used for diagram generation.

RemoveSitesOutsideBoundingBoxOnly

Removes any sites outside the bounding box, but does not perform any further clipping of Voronoi cells that may end up outside of the bounding box.

Clip

Removes sites outside bounding box and clips any Voronoi cell edges that fall outside of the bounding box.

Trait Implementations

impl Clone for ClipBehavior[src]

impl Copy for ClipBehavior[src]

impl Debug for ClipBehavior[src]

impl Default for ClipBehavior[src]

impl PartialEq<ClipBehavior> for ClipBehavior[src]

impl StructuralPartialEq for ClipBehavior[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.