pub enum RulePriority {
Critical = 100,
High = 75,
Normal = 50,
Low = 25,
Minimal = 0,
}Expand description
Priority level for rewrite rules.
Higher priority rules are attempted first. This allows fine-grained control over which transformations take precedence.
Variants§
Critical = 100
Highest priority (value: 100)
High = 75
High priority (value: 75)
Normal = 50
Normal priority (value: 50) - default
Low = 25
Low priority (value: 25)
Minimal = 0
Lowest priority (value: 0)
Trait Implementations§
Source§impl Clone for RulePriority
impl Clone for RulePriority
Source§fn clone(&self) -> RulePriority
fn clone(&self) -> RulePriority
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 RulePriority
impl Debug for RulePriority
Source§impl Default for RulePriority
impl Default for RulePriority
Source§fn default() -> RulePriority
fn default() -> RulePriority
Returns the “default value” for a type. Read more
Source§impl Hash for RulePriority
impl Hash for RulePriority
Source§impl Ord for RulePriority
impl Ord for RulePriority
Source§fn cmp(&self, other: &RulePriority) -> Ordering
fn cmp(&self, other: &RulePriority) -> 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 RulePriority
impl PartialEq for RulePriority
Source§impl PartialOrd for RulePriority
impl PartialOrd for RulePriority
impl Copy for RulePriority
impl Eq for RulePriority
impl StructuralPartialEq for RulePriority
Auto Trait Implementations§
impl Freeze for RulePriority
impl RefUnwindSafe for RulePriority
impl Send for RulePriority
impl Sync for RulePriority
impl Unpin for RulePriority
impl UnwindSafe for RulePriority
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