pub enum ComplexityTier {
Tier0,
Tier1,
Tier2,
Tier3,
}Expand description
Complexity tier for tiered search
Lower tiers contain simpler expressions and are searched first. This allows early exit when good matches are found in simpler tiers.
Variants§
Tier0
Tier 0: complexity 0-15 (simplest expressions)
Tier1
Tier 1: complexity 16-25
Tier2
Tier 2: complexity 26-35
Tier3
Tier 3: complexity 36+ (most complex)
Implementations§
Source§impl ComplexityTier
impl ComplexityTier
Sourcepub fn from_complexity(complexity: u32) -> Self
pub fn from_complexity(complexity: u32) -> Self
Determine the tier for a given complexity value
Trait Implementations§
Source§impl Clone for ComplexityTier
impl Clone for ComplexityTier
Source§fn clone(&self) -> ComplexityTier
fn clone(&self) -> ComplexityTier
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 ComplexityTier
impl Debug for ComplexityTier
Source§impl Ord for ComplexityTier
impl Ord for ComplexityTier
Source§fn cmp(&self, other: &ComplexityTier) -> Ordering
fn cmp(&self, other: &ComplexityTier) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ComplexityTier
impl PartialEq for ComplexityTier
Source§impl PartialOrd for ComplexityTier
impl PartialOrd for ComplexityTier
impl Copy for ComplexityTier
impl Eq for ComplexityTier
impl StructuralPartialEq for ComplexityTier
Auto Trait Implementations§
impl Freeze for ComplexityTier
impl RefUnwindSafe for ComplexityTier
impl Send for ComplexityTier
impl Sync for ComplexityTier
impl Unpin for ComplexityTier
impl UnsafeUnpin for ComplexityTier
impl UnwindSafe for ComplexityTier
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,
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