#[non_exhaustive]pub enum WarpBorder {
Constant = 0,
Replicate = 1,
Transparent = 2,
}Expand description
Border treatment for warp_affine.
The variants match the native border codes.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Constant = 0
Fills the uncovered pixels with the supplied value.
Replicate = 1
Repeats the nearest edge pixel.
Transparent = 2
Leaves the uncovered pixels untouched.
Trait Implementations§
Source§impl Clone for WarpBorder
impl Clone for WarpBorder
impl Copy for WarpBorder
Source§impl Debug for WarpBorder
impl Debug for WarpBorder
impl Eq for WarpBorder
Source§impl PartialEq for WarpBorder
impl PartialEq for WarpBorder
impl StructuralPartialEq for WarpBorder
Auto Trait Implementations§
impl Freeze for WarpBorder
impl RefUnwindSafe for WarpBorder
impl Send for WarpBorder
impl Sync for WarpBorder
impl Unpin for WarpBorder
impl UnsafeUnpin for WarpBorder
impl UnwindSafe for WarpBorder
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