pub struct BurndownFrame {
pub lines: Vec<Line<'static>>,
pub cursor_line: usize,
}Expand description
The tab’s rendered body: the lines to draw and the line its cursor is on.
The cursor travels with the lines so the frame can scroll the body to keep the selected day visible without the tab re-deriving where that day landed.
Fields§
§lines: Vec<Line<'static>>The body, top to bottom.
cursor_line: usizeThe index in Self::lines of the selected day’s row, or 0 when none is drawn.
Trait Implementations§
Source§impl Clone for BurndownFrame
impl Clone for BurndownFrame
Source§impl Debug for BurndownFrame
impl Debug for BurndownFrame
Source§impl PartialEq for BurndownFrame
impl PartialEq for BurndownFrame
impl StructuralPartialEq for BurndownFrame
Auto Trait Implementations§
impl Freeze for BurndownFrame
impl RefUnwindSafe for BurndownFrame
impl Send for BurndownFrame
impl Sync for BurndownFrame
impl Unpin for BurndownFrame
impl UnsafeUnpin for BurndownFrame
impl UnwindSafe for BurndownFrame
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