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
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 16 bytes
Size for each variant:
Height
: 8 bytesWidth
: 8 bytesSmaller
: 8 bytes