Enum ratatu_image::Resize
source · pub enum Resize {
Fit,
Crop,
}
Expand description
Resize method
Variants§
Fit
Fit to area.
If the width or height is smaller than the area, the image will be resized maintaining proportions.
Crop
Crop to area.
If the width or height is smaller than the area, the image will be cropped.
The behaviour is the same as using FixedImage
widget with the overhead of resizing,
but some terminals might misbehave when overdrawing characters over graphics.
For example, the sixel branch of Alacritty never draws text over a cell that is currently
being rendered by some sixel sequence, not necessarily originating from the same cell.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Resize
impl Send for Resize
impl Sync for Resize
impl Unpin for Resize
impl UnwindSafe for Resize
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