pub struct RuleConsumes {
pub eliminates: &'static [RuleTarget],
pub touches: &'static [RuleTarget],
}Expand description
Declares the commands, environments, or characters that a rule removes from, reads, or may otherwise touch in the AST.
The distinction matters for convergence analysis:
eliminates— forms the rule actively removes or replaces. After the rule fires these forms should no longer appear in the output AST.touches— forms that the rule may read or modify without promising to eliminate them from the output AST.
Fields§
§eliminates: &'static [RuleTarget]Forms that the rule removes or replaces in the AST.
touches: &'static [RuleTarget]Forms that the rule may read or modify but does not eliminate.
Trait Implementations§
Source§impl Clone for RuleConsumes
impl Clone for RuleConsumes
Source§fn clone(&self) -> RuleConsumes
fn clone(&self) -> RuleConsumes
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 RuleConsumes
Source§impl Debug for RuleConsumes
impl Debug for RuleConsumes
impl Eq for RuleConsumes
Source§impl PartialEq for RuleConsumes
impl PartialEq for RuleConsumes
Source§fn eq(&self, other: &RuleConsumes) -> bool
fn eq(&self, other: &RuleConsumes) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for RuleConsumes
Auto Trait Implementations§
impl Freeze for RuleConsumes
impl RefUnwindSafe for RuleConsumes
impl Send for RuleConsumes
impl Sync for RuleConsumes
impl Unpin for RuleConsumes
impl UnsafeUnpin for RuleConsumes
impl UnwindSafe for RuleConsumes
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> 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.