#[non_exhaustive]#[repr(i32)]pub enum BorderMode {
Constant = 0,
Replicate = 1,
Reflect = 2,
}Expand description
Edge treatment of Mat::copy_make_border.
The variant follows the native padding mode, so a Reflect border mirrors the image and a
Replicate border repeats the edge row.
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 added rows and columns with the supplied value.
Replicate = 1
Repeats the edge row and column into the border.
Reflect = 2
Mirrors the image into the border without repeating the edge row and column.
Trait Implementations§
Source§impl Clone for BorderMode
impl Clone for BorderMode
impl Copy for BorderMode
Source§impl Debug for BorderMode
impl Debug for BorderMode
impl Eq for BorderMode
Source§impl PartialEq for BorderMode
impl PartialEq for BorderMode
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