pub enum Fitting {
Relaxed,
Aggressive,
Clamp,
Scale,
}Expand description
Clipping strategy
Variants§
Relaxed
Allows child frame even if it goes over the available space. Also useful for debugging, since Frame is less likely to disappear when space is too small.
Aggressive
Removes child frames that touch the margin.
Clamp
Clamps child frame’s edges to available space.
Scale
Scales the child frame to fit available space while preserving aspect ratio.
Trait Implementations§
impl Copy for Fitting
impl StructuralPartialEq for Fitting
Auto Trait Implementations§
impl Freeze for Fitting
impl RefUnwindSafe for Fitting
impl Send for Fitting
impl Sync for Fitting
impl Unpin for Fitting
impl UnwindSafe for Fitting
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