pub struct AssembleFormatter<W>where
W: Write,{ /* private fields */ }Expand description
Write text to a writer
Implementations§
Source§impl<W> AssembleFormatter<W>where
W: Write,
impl<W> AssembleFormatter<W>where
W: Write,
Sourcepub fn new(writer: W) -> AssembleFormatter<W>
pub fn new(writer: W) -> AssembleFormatter<W>
Create a new text factory wrapper around some writer
Sourcepub fn less_important(&mut self) -> LessImportant<'_, W>
pub fn less_important(&mut self) -> LessImportant<'_, W>
Get a writer to write important information
Sourcepub fn project_status<S>(
self,
id: &ProjectId,
status: S,
) -> Result<AssembleFormatter<W>, Error>where
S: ToString,
pub fn project_status<S>(
self,
id: &ProjectId,
status: S,
) -> Result<AssembleFormatter<W>, Error>where
S: ToString,
Print some sort of task status
Sourcepub fn task_status<S>(
self,
id: &TaskId,
status: S,
) -> Result<AssembleFormatter<W>, Error>where
S: ToString,
pub fn task_status<S>(
self,
id: &TaskId,
status: S,
) -> Result<AssembleFormatter<W>, Error>where
S: ToString,
Print some sort of task status
Trait Implementations§
Source§impl<W> Debug for AssembleFormatter<W>
impl<W> Debug for AssembleFormatter<W>
Source§impl Default for AssembleFormatter<String>
impl Default for AssembleFormatter<String>
Source§impl<W> Display for AssembleFormatter<W>
impl<W> Display for AssembleFormatter<W>
Auto Trait Implementations§
impl<W> Freeze for AssembleFormatter<W>where
W: Freeze,
impl<W> RefUnwindSafe for AssembleFormatter<W>where
W: RefUnwindSafe,
impl<W> Send for AssembleFormatter<W>where
W: Send,
impl<W> Sync for AssembleFormatter<W>where
W: Sync,
impl<W> Unpin for AssembleFormatter<W>where
W: Unpin,
impl<W> UnwindSafe for AssembleFormatter<W>where
W: UnwindSafe,
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> InstanceOf for T
impl<T> InstanceOf for T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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