pub enum GridLength {
Auto,
Pixel(f64),
Star(f64),
}Expand description
A Grid row or column size.
Variants§
Auto
Sizes to the content.
Pixel(f64)
Uses a fixed number of device-independent pixels (DIPs).
Star(f64)
Uses a weighted share of the remaining space.
Implementations§
Source§impl GridLength
impl GridLength
Trait Implementations§
Source§impl Clone for GridLength
impl Clone for GridLength
Source§fn clone(&self) -> GridLength
fn clone(&self) -> GridLength
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for GridLength
Source§impl Debug for GridLength
impl Debug for GridLength
Auto Trait Implementations§
impl Freeze for GridLength
impl RefUnwindSafe for GridLength
impl Send for GridLength
impl Sync for GridLength
impl Unpin for GridLength
impl UnsafeUnpin for GridLength
impl UnwindSafe for GridLength
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