pub struct BenchmarkProfilerEntry {
pub syndrome_pattern: SyndromePattern,
pub events: Vec<(String, f64)>,
pub round_time: Option<f64>,
/* private fields */
}Fields§
§syndrome_pattern: SyndromePatternthe syndrome pattern of this decoding problem
events: Vec<(String, f64)>record additional events
round_time: Option<f64>interval between calling Self::record_begin to calling Self::record_end
Implementations§
Source§impl BenchmarkProfilerEntry
impl BenchmarkProfilerEntry
pub fn new(syndrome_pattern: &SyndromePattern) -> Self
Sourcepub fn record_begin(&mut self)
pub fn record_begin(&mut self)
record the beginning of a decoding procedure
Sourcepub fn record_end(&mut self)
pub fn record_end(&mut self)
record the ending of a decoding procedure
pub fn record_event(&mut self, event_name: String)
pub fn is_complete(&self) -> bool
Auto Trait Implementations§
impl Freeze for BenchmarkProfilerEntry
impl RefUnwindSafe for BenchmarkProfilerEntry
impl Send for BenchmarkProfilerEntry
impl Sync for BenchmarkProfilerEntry
impl Unpin for BenchmarkProfilerEntry
impl UnwindSafe for BenchmarkProfilerEntry
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more