pub enum NormalizationLevel {
Standard,
Expand,
Drop,
Equiv,
}Variants§
Standard
Rules whose output is suitable for authoring-oriented normalization.
Expand
Rules that expand compact or package-specific notation while preserving the rendered formula.
Drop
Rules that remove layout-only forms for corpus-oriented normalization.
Equiv
Rules whose output is only suitable as an equivalence-checking intermediate, not as a corpus label.
Implementations§
Source§impl NormalizationLevel
impl NormalizationLevel
pub const fn as_str(self) -> &'static str
Sourcepub const fn min_fidelity(self) -> RuleFidelity
pub const fn min_fidelity(self) -> RuleFidelity
Lowest fidelity a rule at this level may declare.
level and fidelity answer different questions. level determines
when profiles accept the rewrite output; fidelity is the render
guarantee used for contract validation. Do not infer one from the
other: an Equiv rule may still be Full when its output is
pixel-identical but too expanded to serve as a corpus label, as with
fenced matrix environment expansion.
Trait Implementations§
Source§impl Clone for NormalizationLevel
impl Clone for NormalizationLevel
Source§fn clone(&self) -> NormalizationLevel
fn clone(&self) -> NormalizationLevel
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 NormalizationLevel
Source§impl Debug for NormalizationLevel
impl Debug for NormalizationLevel
impl Eq for NormalizationLevel
Source§impl From<NormalizationLevel> for NormalizationLevelSet
impl From<NormalizationLevel> for NormalizationLevelSet
Source§fn from(level: NormalizationLevel) -> Self
fn from(level: NormalizationLevel) -> Self
Converts to this type from the input type.
Source§impl Hash for NormalizationLevel
impl Hash for NormalizationLevel
Source§impl Ord for NormalizationLevel
impl Ord for NormalizationLevel
Source§fn cmp(&self, other: &NormalizationLevel) -> Ordering
fn cmp(&self, other: &NormalizationLevel) -> 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 NormalizationLevel
impl PartialEq for NormalizationLevel
Source§fn eq(&self, other: &NormalizationLevel) -> bool
fn eq(&self, other: &NormalizationLevel) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for NormalizationLevel
impl PartialOrd for NormalizationLevel
impl StructuralPartialEq for NormalizationLevel
Auto Trait Implementations§
impl Freeze for NormalizationLevel
impl RefUnwindSafe for NormalizationLevel
impl Send for NormalizationLevel
impl Sync for NormalizationLevel
impl Unpin for NormalizationLevel
impl UnsafeUnpin for NormalizationLevel
impl UnwindSafe for NormalizationLevel
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.