pub enum Eligibility {
Eligible,
Ineligible(Vec<Boundary>),
}Expand description
Verdict for a single rule.
Variants§
Eligible
The rule could be planned as a multiway join. Note: this is eligibility, not requirement — the eventual planner is free to lower an Eligible rule as a binary join if its cost model says so. Two-atom rules are Eligible: both multiway and binary are valid lowerings.
Ineligible(Vec<Boundary>)
The rule must fall back to binary-join lowering. Each
Boundary in the vector is one independent reason; the
list is non-empty.
Implementations§
Source§impl Eligibility
impl Eligibility
Sourcepub fn boundaries(&self) -> &[Boundary]
pub fn boundaries(&self) -> &[Boundary]
Iterate over boundaries (empty for Eligibility::Eligible).
Trait Implementations§
Source§impl Clone for Eligibility
impl Clone for Eligibility
Source§fn clone(&self) -> Eligibility
fn clone(&self) -> Eligibility
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Eligibility
impl Debug for Eligibility
Source§impl PartialEq for Eligibility
impl PartialEq for Eligibility
impl Eq for Eligibility
impl StructuralPartialEq for Eligibility
Auto Trait Implementations§
impl Freeze for Eligibility
impl RefUnwindSafe for Eligibility
impl Send for Eligibility
impl Sync for Eligibility
impl Unpin for Eligibility
impl UnsafeUnpin for Eligibility
impl UnwindSafe for Eligibility
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more