pub struct ItemAccumulator { /* private fields */ }Expand description
Receives lines and accumulates them into items, used at end to build a sorted list of lines.
This is a small optional utility for report makers
Implementations§
Source§impl ItemAccumulator
impl ItemAccumulator
pub fn start_item(&mut self, kind: Kind)
pub fn close_item(&mut self)
pub fn push_line(&mut self, line_type: LineType, content: TLine)
pub fn push_error_title(&mut self, content: TLine)
pub fn push_failure_title(&mut self, content: TLine)
pub fn lines(self) -> Vec<Line>
pub fn report(self) -> Report
Trait Implementations§
Source§impl Default for ItemAccumulator
impl Default for ItemAccumulator
Source§fn default() -> ItemAccumulator
fn default() -> ItemAccumulator
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ItemAccumulator
impl RefUnwindSafe for ItemAccumulator
impl Send for ItemAccumulator
impl Sync for ItemAccumulator
impl Unpin for ItemAccumulator
impl UnwindSafe for ItemAccumulator
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