pub enum Use {
Answer,
Enable,
Decide,
}Expand description
What a caller intends to do with an answer.
The three uses of spec/stats/05-every-query.md section 5.1.1. A consumer declares one, the
class rule follows from it rather than from the consumer’s judgement, and EXPLAIN prints which
one happened. See Stat::answer, Stat::enable and Stat::decide.
Variants§
Answer
The statistic is the result. Entitled to Exact, and to Certified where the consumer can
discharge the proof obligation and has a fallback for when it cannot.
Enable
The statistic licenses a rewrite that would be wrong if the statistic were wrong. Entitled to
Exact only.
Decide
The statistic chooses between two plans that produce the same rows. Entitled to any class, including none.
Implementations§
Trait Implementations§
impl Copy for Use
impl Eq for Use
impl StructuralPartialEq for Use
Auto Trait Implementations§
impl Freeze for Use
impl RefUnwindSafe for Use
impl Send for Use
impl Sync for Use
impl Unpin for Use
impl UnsafeUnpin for Use
impl UnwindSafe for Use
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