Skip to main content

Enough

Struct Enough 

Source
pub struct Enough<'a> { /* private fields */ }
Expand description

Decides when a newest-first walk has read far enough for build to produce the report the whole walk would.

That is one recorded commit past the limit, which is proof that older ones exist, and every benchmark named with --bench seen with something to draw, so that [check_benches] passes on the prefix exactly when it would on the whole. Until both hold, the walk goes on to the end, and the report is built from all of it as before.

“Recorded” is build’s rule, not merely a note being present, or a run of commits carrying only other benchmarks would end the walk before the selected one’s points were reached.

Implementations§

Source§

impl<'a> Enough<'a>

Source

pub fn new(limit: usize, benches: &'a [String]) -> Self

Source

pub fn after(&mut self, c: &Logged) -> bool

Take in the next commit of the walk; true once nothing older can change the report.

Auto Trait Implementations§

§

impl<'a> Forget for Enough<'a>

§

impl<'a> Freeze for Enough<'a>
where &'a [String]: Freeze, *const LeafNode<String, SetValZST> is !null: Freeze, PhantomData<(Owned, LeafOrInternal)>: Freeze, PhantomData<Box<(String, SetValZST)>>: Freeze,

§

impl<'a> Move for Enough<'a>

§

impl<'a> RefUnwindSafe for Enough<'a>

§

impl<'a> Send for Enough<'a>
where &'a [String]: Send, NodeRef<Owned, String, SetValZST, LeafOrInternal>: Send, BoxRaw<(String, SetValZST)>: Send,

§

impl<'a> Sync for Enough<'a>
where RawVecInner: Sync, NodeRef<Owned, String, SetValZST, LeafOrInternal>: Sync, BoxRaw<(String, SetValZST)>: Sync,

§

impl<'a> Unpin for Enough<'a>
where &'a [String]: Unpin, *const LeafNode<String, SetValZST> is !null: Unpin, Box<(String, SetValZST)>: Unpin,

§

impl<'a> UnsafeUnpin for Enough<'a>
where &'a [String]: UnsafeUnpin, *const LeafNode<String, SetValZST> is !null: UnsafeUnpin, PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin, PhantomData<Box<(String, SetValZST)>>: UnsafeUnpin,

§

impl<'a> UnwindSafe for Enough<'a>
where &'a [String]: UnwindSafe, BTreeMap<String, SetValZST>: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.