pub enum Piece {
Var {
name: &'static str,
index: usize,
},
Int(i128),
App {
head: &'static str,
arity: usize,
},
}Expand description
One piece of a replacement, in the pre-order that builds it.
Variants§
Var
Whatever the pattern bound at this position.
Fields
Int(i128)
A constant written in the rule.
App
A machine term, which is an instruction once the selector has built it.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Piece
impl RefUnwindSafe for Piece
impl Send for Piece
impl Sync for Piece
impl Unpin for Piece
impl UnsafeUnpin for Piece
impl UnwindSafe for Piece
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