pub struct Line { /* private fields */ }
Expand description
Simple helper struct used to display lines with a dotted separator. For example: “line text (1.2 ms) ………….. status”.
Implementations§
Source§impl Line
impl Line
pub fn new(text: impl Into<String>) -> Self
pub fn with_duration(self, duration: Duration) -> Self
pub fn with_state(self, state: impl Into<ColoredString>) -> Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Line
impl RefUnwindSafe for Line
impl Send for Line
impl Sync for Line
impl Unpin for Line
impl UnwindSafe for Line
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