#[non_exhaustive]pub enum Trimming {
Centered {
width: i16,
height: i16,
},
Off,
}
Expand description
Configuration to handle image trimming.
See Trimming::new_centered()
and the other associated methods for controlled
ways of configuring trimming.
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.
Implementations§
source§impl Trimming
impl Trimming
sourcepub fn new_centered(width: i16, height: i16) -> Self
pub fn new_centered(width: i16, height: i16) -> Self
sourcepub fn new_centered_with_view(size: ViewSize) -> Self
pub fn new_centered_with_view(size: ViewSize) -> Self
Create a new Trimming
configuration using a standard view size centered to the original image.
Trait Implementations§
impl Copy for Trimming
impl Eq for Trimming
impl StructuralPartialEq for Trimming
Auto Trait Implementations§
impl RefUnwindSafe for Trimming
impl Send for Trimming
impl Sync for Trimming
impl Unpin for Trimming
impl UnwindSafe for Trimming
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more