pub struct ProfilerCounter {
pub name: String,
pub time: f64,
pub counters: Vec<ProfilerCounter>,
pub active_counter: Option<usize>,
}
Fields§
§name: String
§time: f64
§counters: Vec<ProfilerCounter>
§active_counter: Option<usize>
Implementations§
Source§impl ProfilerCounter
impl ProfilerCounter
pub fn new(name: String) -> ProfilerCounter
pub fn active_counter(&mut self) -> &mut ProfilerCounter
pub fn parent_active_counter(&mut self) -> &mut ProfilerCounter
Trait Implementations§
Source§impl Clone for ProfilerCounter
impl Clone for ProfilerCounter
Source§fn clone(&self) -> ProfilerCounter
fn clone(&self) -> ProfilerCounter
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for ProfilerCounter
impl RefUnwindSafe for ProfilerCounter
impl Send for ProfilerCounter
impl Sync for ProfilerCounter
impl Unpin for ProfilerCounter
impl UnwindSafe for ProfilerCounter
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