pub struct Gantt { /* private fields */ }Expand description
Gantt chart widget.
Implementations§
Source§impl Gantt
impl Gantt
Sourcepub fn new(tasks: impl IntoIterator<Item = Task>) -> Self
pub fn new(tasks: impl IntoIterator<Item = Task>) -> Self
Create from tasks.
Sourcepub fn range(self, start: f64, end: f64) -> Self
pub fn range(self, start: f64, end: f64) -> Self
Fixed time range (default: span of all tasks).
Sourcepub fn palette(self, p: Vec<Color>) -> Self
pub fn palette(self, p: Vec<Color>) -> Self
Palette cycled over tasks without an explicit color.
Sourcepub fn base_style(self, style: Style) -> Self
pub fn base_style(self, style: Style) -> Self
Base style painted over the whole area (beats the theme).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Gantt
impl RefUnwindSafe for Gantt
impl Send for Gantt
impl Sync for Gantt
impl Unpin for Gantt
impl UnsafeUnpin for Gantt
impl UnwindSafe for Gantt
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