pub enum BorderMode<T, const CHANNELS: usize> {
Constant([T; CHANNELS]),
Replicate,
Reflect,
Reflect101,
Wrap,
}Expand description
Out-of-bounds sampling behavior for CPU image operations.
Variants§
Constant([T; CHANNELS])
Returns a fixed pixel outside the source image.
Replicate
Repeats the closest edge pixel.
Reflect
Reflects including the edge pixel (fedcba|abcdefgh|hgfedc).
Reflect101
Reflects without repeating the edge (gfedcb|abcdefgh|gfedcb).
Wrap
Periodically wraps source coordinates.
Trait Implementations§
Source§impl<T: Clone, const CHANNELS: usize> Clone for BorderMode<T, CHANNELS>
impl<T: Clone, const CHANNELS: usize> Clone for BorderMode<T, CHANNELS>
Source§fn clone(&self) -> BorderMode<T, CHANNELS>
fn clone(&self) -> BorderMode<T, CHANNELS>
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 moreSource§impl<T: PartialEq, const CHANNELS: usize> PartialEq for BorderMode<T, CHANNELS>
impl<T: PartialEq, const CHANNELS: usize> PartialEq for BorderMode<T, CHANNELS>
Source§fn eq(&self, other: &BorderMode<T, CHANNELS>) -> bool
fn eq(&self, other: &BorderMode<T, CHANNELS>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<T: Copy, const CHANNELS: usize> Copy for BorderMode<T, CHANNELS>
impl<T, const CHANNELS: usize> StructuralPartialEq for BorderMode<T, CHANNELS>
Auto Trait Implementations§
impl<T, const CHANNELS: usize> Freeze for BorderMode<T, CHANNELS>where
T: Freeze,
impl<T, const CHANNELS: usize> RefUnwindSafe for BorderMode<T, CHANNELS>where
T: RefUnwindSafe,
impl<T, const CHANNELS: usize> Send for BorderMode<T, CHANNELS>where
T: Send,
impl<T, const CHANNELS: usize> Sync for BorderMode<T, CHANNELS>where
T: Sync,
impl<T, const CHANNELS: usize> Unpin for BorderMode<T, CHANNELS>where
T: Unpin,
impl<T, const CHANNELS: usize> UnsafeUnpin for BorderMode<T, CHANNELS>where
T: UnsafeUnpin,
impl<T, const CHANNELS: usize> UnwindSafe for BorderMode<T, CHANNELS>where
T: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more