pub struct ResultStack { /* private fields */ }Expand description
Stack accumulating operation results.
Implementations§
Source§impl ResultStack
impl ResultStack
pub fn new() -> Self
pub fn push_ok(&mut self, msg: &str)
pub fn push_err(&mut self, msg: &str, code: i32)
pub fn push_skipped(&mut self, msg: &str)
pub fn pop(&mut self) -> Option<ResultEntry>
pub fn peek(&self) -> Option<&ResultEntry>
pub fn has_errors(&self) -> bool
pub fn all_ok(&self) -> bool
pub fn ok_count(&self) -> usize
pub fn err_count(&self) -> usize
pub fn skip_count(&self) -> usize
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn clear(&mut self)
pub fn errors(&self) -> Vec<&ResultEntry>
pub fn to_summary(&self) -> String
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ResultStack
impl RefUnwindSafe for ResultStack
impl Send for ResultStack
impl Sync for ResultStack
impl Unpin for ResultStack
impl UnsafeUnpin for ResultStack
impl UnwindSafe for ResultStack
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