Expand description
Specify whether a width or a height has a preferred fixed size or whether it should occupy a percentage of its parent container. The default is 100% of the parent container.
Variants
Fixed(u16)
Occupy a fixed number of cells
Percentage(u8)
Occupy a percentage of the space in the parent container
Trait Implementations
sourceimpl Clone for DimensionSpec
impl Clone for DimensionSpec
sourcefn clone(&self) -> DimensionSpec
fn clone(&self) -> DimensionSpec
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for DimensionSpec
impl Debug for DimensionSpec
sourceimpl Default for DimensionSpec
impl Default for DimensionSpec
sourceimpl PartialEq<DimensionSpec> for DimensionSpec
impl PartialEq<DimensionSpec> for DimensionSpec
sourcefn eq(&self, other: &DimensionSpec) -> bool
fn eq(&self, other: &DimensionSpec) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &DimensionSpec) -> bool
fn ne(&self, other: &DimensionSpec) -> bool
This method tests for !=
.
impl Copy for DimensionSpec
impl Eq for DimensionSpec
impl StructuralEq for DimensionSpec
impl StructuralPartialEq for DimensionSpec
Auto Trait Implementations
impl RefUnwindSafe for DimensionSpec
impl Send for DimensionSpec
impl Sync for DimensionSpec
impl Unpin for DimensionSpec
impl UnwindSafe for DimensionSpec
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more