pub enum DimensionValue {
Exact(usize),
List(Vec<usize>),
Partial(Vec<usize>, usize),
}
Expand description
A dimension value.
Variants§
Exact(usize)
Const width value.
List(Vec<usize>)
A list of width values for columns.
Partial(Vec<usize>, usize)
A list of width values for columns and a value for the rest.
Implementations§
Trait Implementations§
Source§impl Clone for DimensionValue
impl Clone for DimensionValue
Source§fn clone(&self) -> DimensionValue
fn clone(&self) -> DimensionValue
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for DimensionValue
impl RefUnwindSafe for DimensionValue
impl Send for DimensionValue
impl Sync for DimensionValue
impl Unpin for DimensionValue
impl UnwindSafe for DimensionValue
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