pub enum Connectivity {
Four,
Eight,
}Expand description
Pixel adjacency used when grouping foreground pixels.
Variants§
Four
4-connectivity: only the N/S/E/W neighbours are adjacent.
Eight
8-connectivity: the diagonal neighbours are adjacent as well.
Trait Implementations§
Source§impl Clone for Connectivity
impl Clone for Connectivity
Source§fn clone(&self) -> Connectivity
fn clone(&self) -> Connectivity
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for Connectivity
Source§impl Debug for Connectivity
impl Debug for Connectivity
impl Eq for Connectivity
Source§impl PartialEq for Connectivity
impl PartialEq for Connectivity
Source§fn eq(&self, other: &Connectivity) -> bool
fn eq(&self, other: &Connectivity) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for Connectivity
Auto Trait Implementations§
impl Freeze for Connectivity
impl RefUnwindSafe for Connectivity
impl Send for Connectivity
impl Sync for Connectivity
impl Unpin for Connectivity
impl UnsafeUnpin for Connectivity
impl UnwindSafe for Connectivity
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