pub enum Fit {
Stretch,
Contain,
Cover,
}Expand description
How a source should fit its images to the wall.
Variants§
Stretch
Fill the wall exactly, ignoring the source’s aspect ratio.
Contain
Preserve aspect ratio, padding with black.
Cover
Preserve aspect ratio, cropping the overflow.
Trait Implementations§
impl Copy for Fit
impl Eq for Fit
impl StructuralPartialEq for Fit
Auto Trait Implementations§
impl Freeze for Fit
impl RefUnwindSafe for Fit
impl Send for Fit
impl Sync for Fit
impl Unpin for Fit
impl UnsafeUnpin for Fit
impl UnwindSafe for Fit
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