Enum lyon_algorithms::fit::FitStyle
source · pub enum FitStyle {
Stretch,
Min,
Max,
Horizontal,
Vertical,
}
Expand description
The strategy to use when fitting (stretching, overflow, etc.)
Variants§
Stretch
Stretch vertically and horizontally to fit the destination rectangle exactly.
Min
Uniformly scale without overflow.
Max
Uniformly scale with overflow.
Horizontal
Uniformly scale to fit horizontally.
Vertical
Uniformly scale to fit vertically.
Trait Implementations§
source§impl PartialEq for FitStyle
impl PartialEq for FitStyle
impl Copy for FitStyle
impl Eq for FitStyle
impl StructuralEq for FitStyle
impl StructuralPartialEq for FitStyle
Auto Trait Implementations§
impl RefUnwindSafe for FitStyle
impl Send for FitStyle
impl Sync for FitStyle
impl Unpin for FitStyle
impl UnwindSafe for FitStyle
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