pub enum RelativeSize {
Height(f64),
Width(f64),
Smaller(f64),
}
Expand description
Describes a relative size, might be 1. portion of height 2. portion of width 3. portion of the minimal of height and weight
Variants§
Height(f64)
Percentage height
Width(f64)
Percentage width
Smaller(f64)
Percentage of either height or width, which is smaller
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RelativeSize
impl RefUnwindSafe for RelativeSize
impl Send for RelativeSize
impl Sync for RelativeSize
impl Unpin for RelativeSize
impl UnwindSafe for RelativeSize
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