pub struct TextColumn { /* private fields */ }Expand description
A text cell built from a format string. Port of TextColumn: the format
is expanded against the task as text_format.format(task=task), so it can
use any task attribute ({task.completed}, {task.percentage:>3.0f}) and
per-task fields ({task.fields[name]}).
Implementations§
Source§impl TextColumn
impl TextColumn
Sourcepub fn new(text_format: impl Into<String>) -> Self
pub fn new(text_format: impl Into<String>) -> Self
TextColumn(text_format) with upstream’s defaults: no style, left
justified, console markup on.
Sourcepub fn style(self, style: impl Into<StyleType>) -> Self
pub fn style(self, style: impl Into<StyleType>) -> Self
The style of the whole cell (upstream style).
Auto Trait Implementations§
impl Freeze for TextColumn
impl RefUnwindSafe for TextColumn
impl Send for TextColumn
impl Sync for TextColumn
impl Unpin for TextColumn
impl UnsafeUnpin for TextColumn
impl UnwindSafe for TextColumn
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