pub struct Sizing<'a> {
pub lengths: &'a [(&'a str, f32)],
pub fallback: f32,
}Expand description
The lengths the description deferred, in points.
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. The other two renderers hold this same type over CSS lengths and over
terminal cells.
Fields§
§lengths: &'a [(&'a str, f32)](column name, points). The track for a Width::Fixed column, the
floor for a Width::Fill one, and the narrowing budget for a
Width::Content one.
fallback: f32Used 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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