pub enum Extent {
Ch(f64),
Lines(f64),
Fraction(f64),
}Expand description
A size bound: "<n>ch", "<n>lines" or a fraction of the parent.
Variants§
Ch(f64)
Character cells.
Lines(f64)
Text lines.
Fraction(f64)
A fraction of the parent (0.5 is half).
Trait Implementations§
impl Copy for Extent
impl StructuralPartialEq for Extent
Auto Trait Implementations§
impl Freeze for Extent
impl RefUnwindSafe for Extent
impl Send for Extent
impl Sync for Extent
impl Unpin for Extent
impl UnsafeUnpin for Extent
impl UnwindSafe for Extent
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