pub enum Dimension {
Auto,
Points(f32),
Percent(f32),
}Expand description
Size dimension (auto, fixed points, or percentage).
§Examples
use a3s_tui::element::Dimension;
let auto = Dimension::Auto;
let fixed = Dimension::Points(100.0);
let percent = Dimension::Percent(50.0);Variants§
Auto
Automatically calculate size based on content.
Points(f32)
Fixed size in terminal cells.
Percent(f32)
Percentage of parent size (0.0 to 100.0).
Trait Implementations§
impl Copy for Dimension
impl StructuralPartialEq for Dimension
Auto Trait Implementations§
impl Freeze for Dimension
impl RefUnwindSafe for Dimension
impl Send for Dimension
impl Sync for Dimension
impl Unpin for Dimension
impl UnsafeUnpin for Dimension
impl UnwindSafe for Dimension
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