Enum voronoice::ClipBehavior
source · [−]pub enum ClipBehavior {
None,
RemoveSitesOutsideBoundingBoxOnly,
Clip,
}
Expand description
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
sourceimpl Clone for ClipBehavior
impl Clone for ClipBehavior
sourcefn clone(&self) -> ClipBehavior
fn clone(&self) -> ClipBehavior
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ClipBehavior
impl Debug for ClipBehavior
sourceimpl Default for ClipBehavior
impl Default for ClipBehavior
sourceimpl Display for ClipBehavior
impl Display for ClipBehavior
sourceimpl FromStr for ClipBehavior
impl FromStr for ClipBehavior
sourceimpl PartialEq<ClipBehavior> for ClipBehavior
impl PartialEq<ClipBehavior> for ClipBehavior
impl Copy for ClipBehavior
impl StructuralPartialEq for ClipBehavior
Auto Trait Implementations
impl RefUnwindSafe for ClipBehavior
impl Send for ClipBehavior
impl Sync for ClipBehavior
impl Unpin for ClipBehavior
impl UnwindSafe for ClipBehavior
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more