pub struct Tile {
pub id: NodeId,
pub area: Area,
pub depth: usize,
pub kind: Kind,
pub marked: bool,
pub cursor: bool,
pub nested: bool,
pub name: String,
pub worth: String,
}Expand description
One rectangle of the map.
Fields§
§id: NodeIdWhich directory.
area: AreaWhere it goes.
depth: usize1 for a child of the mapped directory, 2 for a grandchild.
kind: KindWhether its area is bytes or a count of things nobody has counted.
marked: boolWhether the reader has marked this whole subtree.
cursor: boolWhether the tree’s cursor is on this directory — the map’s half of “you are here”.
nested: boolWhether rectangles are drawn inside this one.
The paint needs to know, because a nested rectangle owns everything below this one’s caption strip: a label laid out as though it had the whole tile gets its second line half eaten by its own child, which is what the first render of this spike did.
name: StringThe directory’s own name.
worth: StringWhat it is worth, in the unit its area is in.
Trait Implementations§
impl StructuralPartialEq for Tile
Auto Trait Implementations§
impl Freeze for Tile
impl RefUnwindSafe for Tile
impl Send for Tile
impl Sync for Tile
impl Unpin for Tile
impl UnsafeUnpin for Tile
impl UnwindSafe for Tile
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