pub struct CropDimensions {
pub top: usize,
pub bottom: usize,
pub left: usize,
pub right: usize,
}Expand description
Specifies the number of pixels to crop off of each side of the image.
Fields§
§top: usize§bottom: usize§left: usize§right: usizeTrait Implementations§
Source§impl Clone for CropDimensions
impl Clone for CropDimensions
Source§fn clone(&self) -> CropDimensions
fn clone(&self) -> CropDimensions
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CropDimensions
impl Debug for CropDimensions
impl Copy for CropDimensions
Auto Trait Implementations§
impl Freeze for CropDimensions
impl RefUnwindSafe for CropDimensions
impl Send for CropDimensions
impl Sync for CropDimensions
impl Unpin for CropDimensions
impl UnwindSafe for CropDimensions
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