pub struct Stats { /* private fields */ }Implementations
sourceimpl 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 RefUnwindSafe for Stats
impl Send for Stats
impl Sync for Stats
impl Unpin for Stats
impl UnwindSafe for Stats
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more