pub struct BenchmarkPassSelectionScratch { /* private fields */ }Expand description
Caller-owned scratch for repeated benchmark pass selection.
Implementations§
Source§impl BenchmarkPassSelectionScratch
impl BenchmarkPassSelectionScratch
Sourcepub fn try_with_capacity(
candidate_count: usize,
) -> Result<Self, BenchmarkPassSelectionError>
pub fn try_with_capacity( candidate_count: usize, ) -> Result<Self, BenchmarkPassSelectionError>
Allocate reusable pass-selection scratch for a known candidate count.
§Errors
Returns BenchmarkPassSelectionError when scratch storage cannot be reserved.
Sourcepub fn try_reserve_candidates(
&mut self,
candidate_count: usize,
) -> Result<(), BenchmarkPassSelectionError>
pub fn try_reserve_candidates( &mut self, candidate_count: usize, ) -> Result<(), BenchmarkPassSelectionError>
Reserve reusable pass-selection scratch for a known candidate count.
§Errors
Returns BenchmarkPassSelectionError when scratch storage cannot be reserved.
Sourcepub fn seen_capacity(&self) -> usize
pub fn seen_capacity(&self) -> usize
Retained duplicate-detection capacity.
Sourcepub fn ordered_index_capacity(&self) -> usize
pub fn ordered_index_capacity(&self) -> usize
Retained candidate-ordering capacity.
Trait Implementations§
Source§impl Default for BenchmarkPassSelectionScratch
impl Default for BenchmarkPassSelectionScratch
Source§fn default() -> BenchmarkPassSelectionScratch
fn default() -> BenchmarkPassSelectionScratch
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for BenchmarkPassSelectionScratch
impl RefUnwindSafe for BenchmarkPassSelectionScratch
impl Send for BenchmarkPassSelectionScratch
impl Sync for BenchmarkPassSelectionScratch
impl Unpin for BenchmarkPassSelectionScratch
impl UnsafeUnpin for BenchmarkPassSelectionScratch
impl UnwindSafe for BenchmarkPassSelectionScratch
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