Struct papi_bindings::events_set::EventsSet
source · pub struct EventsSet { /* private fields */ }Implementations
sourceimpl EventsSet
impl EventsSet
pub fn new(counters: &[Counter]) -> Result<Self, PapiError>
pub fn len(&self) -> usize
pub fn try_clone(&self) -> Result<Self, PapiError>
pub fn start(&mut self) -> Result<(), PapiError>
pub fn read(&mut self) -> Result<&[c_longlong], PapiError>
pub fn read_into<'a>(
&self,
counters: &'a mut [c_longlong]
) -> Result<&'a [c_longlong], PapiError>
pub fn accum(&mut self) -> Result<&[c_longlong], PapiError>
pub fn stop(&mut self) -> Result<&[c_longlong], PapiError>
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for EventsSet
impl Send for EventsSet
impl Sync for EventsSet
impl Unpin for EventsSet
impl UnwindSafe for EventsSet
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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