pub struct State {
pub events: Events,
}
Expand description
Structure containing all thread-local state required to use the single-threaded allocation checker.
Fields§
§events: Events
Events collected.
Implementations§
source§impl State
impl State
sourcepub fn reserve(&mut self, cap: usize)
pub fn reserve(&mut self, cap: usize)
Reserve the specified number of events.
See Events::reserve for more documentation.
sourcepub fn clear(&mut self)
pub fn clear(&mut self)
Clear the current collection of events.
See Events::clear for more documentation.
sourcepub fn validate(&self, errors: &mut Vec<Violation>)
pub fn validate(&self, errors: &mut Vec<Violation>)
Validate the current state.
See Events::validate for more documentation.