pub struct Columns {
pub name: Rect,
pub size: Rect,
pub age: Rect,
pub label: Option<Rect>,
}Expand description
Where the tree’s columns went, laid out once for the table and for the hit test.
Length constraints derived from these are what the Table is given, so the widget’s
own split reproduces this one exactly rather than merely agreeing with it — which is the
difference between a heading a click sorts by and a heading a click sorts near.
The rectangles cover the tree’s rows. The heading is a line above them and takes only
the horizontal extent, which is the whole of what a column is: x and width are the
column, and y is whichever band asked for it.
Fields§
§name: RectThe mark box, the indent, the expander and the name.
size: RectWhat the subtree is worth.
age: RectHow long ago it was touched.
label: Option<Rect>What a claim is, when the terminal is wide enough to carry the column.
Trait Implementations§
impl Copy for Columns
impl Eq for Columns
impl StructuralPartialEq for Columns
Auto Trait Implementations§
impl Freeze for Columns
impl RefUnwindSafe for Columns
impl Send for Columns
impl Sync for Columns
impl Unpin for Columns
impl UnsafeUnpin for Columns
impl UnwindSafe for Columns
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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