pub enum RuleFidelity {
Semantic,
Approximate,
Full,
}Expand description
How faithfully a rewrite preserves the input when re-rendered.
Ordered least-to-most faithful. The value is the rule’s worst-case guarantee over its declared input domain. It drives contract validation, but it does not choose the image comparison algorithm.
Variants§
Semantic
Mathematical meaning is preserved, but rendering may change.
Approximate
Rendering is visually equivalent apart from minor spacing or placement.
Full
Rendering is pixel-identical before and after the rewrite.
Trait Implementations§
Source§impl Clone for RuleFidelity
impl Clone for RuleFidelity
Source§fn clone(&self) -> RuleFidelity
fn clone(&self) -> RuleFidelity
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for RuleFidelity
Source§impl Debug for RuleFidelity
impl Debug for RuleFidelity
impl Eq for RuleFidelity
Source§impl Hash for RuleFidelity
impl Hash for RuleFidelity
Source§impl Ord for RuleFidelity
impl Ord for RuleFidelity
Source§fn cmp(&self, other: &RuleFidelity) -> Ordering
fn cmp(&self, other: &RuleFidelity) -> Ordering
1.21.0 (const: unstable) · 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 RuleFidelity
impl PartialEq for RuleFidelity
Source§fn eq(&self, other: &RuleFidelity) -> bool
fn eq(&self, other: &RuleFidelity) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for RuleFidelity
impl PartialOrd for RuleFidelity
impl StructuralPartialEq for RuleFidelity
Auto Trait Implementations§
impl Freeze for RuleFidelity
impl RefUnwindSafe for RuleFidelity
impl Send for RuleFidelity
impl Sync for RuleFidelity
impl Unpin for RuleFidelity
impl UnsafeUnpin for RuleFidelity
impl UnwindSafe for RuleFidelity
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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.