pub enum ReparseTier {
Token,
Verbatim,
Math,
Region,
}Expand description
Which tier produced a Reparsed. Surfaced for tests and benchmarks, which
assert the tier a scenario reaches — a grammar change that silently downgrades
one should fail loudly rather than quietly show up as a slower number.
Ordered cheapest-first, so a chain can report the most expensive tier any of its
steps needed with max.
Variants§
Token
One leaf token was relexed in isolation and spliced in place.
Verbatim
A protected body (VERBATIM_BODY, VERB) was relexed with its enclosing
node’s delimiters and spliced in place.
Math
A delimiter-bearing inline, display, or environment math fragment was reparsed and spliced in place.
Region
A run of top-level children was reparsed and spliced under ROOT.
Trait Implementations§
Source§impl Clone for ReparseTier
impl Clone for ReparseTier
Source§fn clone(&self) -> ReparseTier
fn clone(&self) -> ReparseTier
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 ReparseTier
Source§impl Debug for ReparseTier
impl Debug for ReparseTier
impl Eq for ReparseTier
Source§impl Ord for ReparseTier
impl Ord for ReparseTier
Source§fn cmp(&self, other: &ReparseTier) -> Ordering
fn cmp(&self, other: &ReparseTier) -> 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 ReparseTier
impl PartialEq for ReparseTier
Source§impl PartialOrd for ReparseTier
impl PartialOrd for ReparseTier
impl StructuralPartialEq for ReparseTier
Auto Trait Implementations§
impl Freeze for ReparseTier
impl RefUnwindSafe for ReparseTier
impl Send for ReparseTier
impl Sync for ReparseTier
impl Unpin for ReparseTier
impl UnsafeUnpin for ReparseTier
impl UnwindSafe for ReparseTier
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