pub struct ParserSemanticPredicate {
pub rule_index: usize,
pub pred_index: usize,
pub expr: ExprId,
pub failure_message: Option<&'static str>,
}Expand description
Parser predicate coordinate lowered into SemIr.
Fields§
§rule_index: usizeSerialized rule index that owns this predicate.
pred_index: usizePredicate index inside the owning rule.
expr: ExprIdRoot expression in the associated ParserSemantics::ir arena.
failure_message: Option<&'static str>ANTLR <fail='...'> message for predicates that intentionally fail.
Trait Implementations§
Source§impl Clone for ParserSemanticPredicate
impl Clone for ParserSemanticPredicate
Source§fn clone(&self) -> ParserSemanticPredicate
fn clone(&self) -> ParserSemanticPredicate
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 ParserSemanticPredicate
Source§impl Debug for ParserSemanticPredicate
impl Debug for ParserSemanticPredicate
impl Eq for ParserSemanticPredicate
Source§impl PartialEq for ParserSemanticPredicate
impl PartialEq for ParserSemanticPredicate
impl StructuralPartialEq for ParserSemanticPredicate
Auto Trait Implementations§
impl Freeze for ParserSemanticPredicate
impl RefUnwindSafe for ParserSemanticPredicate
impl Send for ParserSemanticPredicate
impl Sync for ParserSemanticPredicate
impl Unpin for ParserSemanticPredicate
impl UnsafeUnpin for ParserSemanticPredicate
impl UnwindSafe for ParserSemanticPredicate
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