pub enum Part {
Literal(GeneratedTree),
Seat(Seat),
Reach,
}Expand description
One part of a pattern’s declared shape.
A pattern is a sequence of these, and both halves of the grammar are walks over it: a matcher reads a seat as a metavariable and a site writes its own material there, while literal parts are the same tokens on both sides.
Variants§
Literal(GeneratedTree)
Token material every matcher reads and every site writes unchanged.
Seat(Seat)
One seat.
Reach
The coordinate the site’s visibility is written at, which a pattern seating nothing behind a module of its own declares none of.
Trait Implementations§
impl Eq for Part
impl StructuralPartialEq for Part
Auto Trait Implementations§
impl Freeze for Part
impl RefUnwindSafe for Part
impl Send for Part
impl Sync for Part
impl Unpin for Part
impl UnsafeUnpin for Part
impl UnwindSafe for Part
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