pub struct Stats { /* private fields */ }Implementations§
Source§impl Stats
impl Stats
pub fn new() -> Stats
pub fn add_function_name(&mut self, stack: &[StackFrame])
pub fn add_lineno(&mut self, stack: &[StackFrame])
pub fn write(&self, w: &mut dyn Write) -> Result<()>
pub fn write_top_n( &self, w: &mut dyn Write, n: usize, truncate: Option<usize>, ) -> Result<()>
pub fn elapsed_time(&self) -> Duration
Auto Trait Implementations§
impl Freeze for Stats
impl RefUnwindSafe for Stats
impl Send for Stats
impl Sync for Stats
impl Unpin for Stats
impl UnwindSafe for Stats
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