Skip to main content

Sizing

Type Alias Sizing 

Source
pub type Sizing<'a> = Sizing<'a, f32>;
Expand description

The lengths the description deferred, in points: the track for a Width::Fixed column, the floor for a Width::Fill one, and the narrowing budget for a Width::Content one. The suite’s one sizing type, held here over points as the terminal holds it over cells.

Aliased Type§

pub struct Sizing<'a> {
    pub lengths: &'a [(&'a str, f32)],
    pub fallback: f32,
}

Fields§

§lengths: &'a [(&'a str, f32)]

(column name, length): the track for a [Width::Fixed] column and the floor for a [Width::Fill] one.

§fallback: f32

Used for a column with no entry above.