pub struct LexerSemanticPredicate {
pub rule_index: usize,
pub pred_index: usize,
pub expr: ExprId,
}Expand description
Lexer predicate coordinate lowered into crate::semir::SemIr.
Fields§
§rule_index: usizeSerialized lexer rule index that owns this predicate.
pred_index: usizePredicate index inside the owning rule.
expr: ExprIdRoot expression in the associated LexerSemantics::ir arena.
Trait Implementations§
Source§impl Clone for LexerSemanticPredicate
impl Clone for LexerSemanticPredicate
Source§fn clone(&self) -> LexerSemanticPredicate
fn clone(&self) -> LexerSemanticPredicate
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 LexerSemanticPredicate
Source§impl Debug for LexerSemanticPredicate
impl Debug for LexerSemanticPredicate
impl Eq for LexerSemanticPredicate
Source§impl PartialEq for LexerSemanticPredicate
impl PartialEq for LexerSemanticPredicate
impl StructuralPartialEq for LexerSemanticPredicate
Auto Trait Implementations§
impl Freeze for LexerSemanticPredicate
impl RefUnwindSafe for LexerSemanticPredicate
impl Send for LexerSemanticPredicate
impl Sync for LexerSemanticPredicate
impl Unpin for LexerSemanticPredicate
impl UnsafeUnpin for LexerSemanticPredicate
impl UnwindSafe for LexerSemanticPredicate
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