pub struct Sizing<'a> {
pub lengths: &'a [(&'a str, u16)],
pub fallback: u16,
}Expand description
The lengths the description deferred, in cells.
Width says Content, Fixed or Fill and carries no magnitude, because
a magnitude is an answer for one renderer and the description is read by
three. makeover-webview’s Sizing is this same type holding CSS lengths;
this one holds terminal cells, and both are looked up by column name for the
same reason: an app’s columns are not all one size.
Fields§
§lengths: &'a [(&'a str, u16)](column name, cells). The track for a Width::Fixed column and the
floor for a Width::Fill one.
fallback: u16Used for a column with no entry above.
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more