#[non_exhaustive]pub enum Width {
Content,
Fixed,
Fill,
}Expand description
How much room a column asks for.
An intent, so the actual floor stays with makeover-geometry. goingson’s
task table spells these as minmax(200px, 1fr), 140px and content-sized;
only the first three words of that survive deferral.
#[non_exhaustive], for the reason Fill and FieldKind are: a
renderer matches on this and a vocabulary that grows must not break every
renderer when it does.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Content
Takes what it needs and no more.
Fixed
A fixed share, the same at every width.
Fill
Absorbs whatever is left over.
Trait Implementations§
impl Copy for Width
impl Eq for Width
impl StructuralPartialEq for Width
Auto Trait Implementations§
impl Freeze for Width
impl RefUnwindSafe for Width
impl Send for Width
impl Sync for Width
impl Unpin for Width
impl UnsafeUnpin for Width
impl UnwindSafe for Width
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