pub struct Sizing<'a> {
pub lengths: &'a [(&'a str, &'a str)],
pub fallback: &'a str,
}Expand description
The lengths the description deferred.
Width says Content, Fixed or Fill and deliberately carries no
magnitude, because a magnitude is a CSS answer and the description is read
by renderers that have no pixels. So the numbers arrive here instead, the
way a field’s value arrives in Filling rather than
in Field.
Looked up by column name, because an app’s columns are not all one size: goingson’s task table has six distinct fixed widths.
Fields§
§lengths: &'a [(&'a str, &'a str)](column name, CSS length). The length is the track for a
Width::Fixed column and the floor for a Width::Fill one.
fallback: &'a strUsed for a column with no entry above. Empty means auto.
Trait Implementations§
impl<'a> Copy for Sizing<'a>
Auto Trait Implementations§
impl<'a> Freeze for Sizing<'a>
impl<'a> RefUnwindSafe for Sizing<'a>
impl<'a> Send for Sizing<'a>
impl<'a> Sync for Sizing<'a>
impl<'a> Unpin for Sizing<'a>
impl<'a> UnsafeUnpin for Sizing<'a>
impl<'a> UnwindSafe for Sizing<'a>
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