pub enum BorderMode {
Replicate,
Reflect,
Constant(f32),
}Expand description
Boundary handling strategy for slice-based morphology kernels.
The default is BorderMode::Replicate, matching the conventional
behaviour of the buffer-based morphology operators in
crate::raster::morphology.
Variants§
Replicate
Replicate edge pixels (default).
Reflect
Mirror pixels at the border.
Constant(f32)
Pad with a constant value.
Trait Implementations§
Source§impl Clone for BorderMode
impl Clone for BorderMode
Source§fn clone(&self) -> BorderMode
fn clone(&self) -> BorderMode
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 BorderMode
Source§impl Debug for BorderMode
impl Debug for BorderMode
Source§impl Default for BorderMode
impl Default for BorderMode
Source§impl PartialEq for BorderMode
impl PartialEq for BorderMode
Source§fn eq(&self, other: &BorderMode) -> bool
fn eq(&self, other: &BorderMode) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for BorderMode
Auto Trait Implementations§
impl Freeze for BorderMode
impl RefUnwindSafe for BorderMode
impl Send for BorderMode
impl Sync for BorderMode
impl Unpin for BorderMode
impl UnsafeUnpin for BorderMode
impl UnwindSafe for BorderMode
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