pub struct RuleProduces {
pub targets: &'static [RuleTarget],
}Expand description
Declares the new forms that a rule may introduce into the AST.
The engine uses this to verify that every produced form is either in the acceptable command set or is consumed by another rule, ensuring convergence.
Fields§
§targets: &'static [RuleTarget]Commands, environments, or characters that may appear in the AST after the rule fires.
Trait Implementations§
Source§impl Clone for RuleProduces
impl Clone for RuleProduces
Source§fn clone(&self) -> RuleProduces
fn clone(&self) -> RuleProduces
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 RuleProduces
Source§impl Debug for RuleProduces
impl Debug for RuleProduces
impl Eq for RuleProduces
Source§impl PartialEq for RuleProduces
impl PartialEq for RuleProduces
Source§fn eq(&self, other: &RuleProduces) -> bool
fn eq(&self, other: &RuleProduces) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for RuleProduces
Auto Trait Implementations§
impl Freeze for RuleProduces
impl RefUnwindSafe for RuleProduces
impl Send for RuleProduces
impl Sync for RuleProduces
impl Unpin for RuleProduces
impl UnsafeUnpin for RuleProduces
impl UnwindSafe for RuleProduces
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.