pub enum GapPiece {
Comment(Comment),
Punct(&'static str),
}Expand description
One element of a scanned gap: either a recovered comment or one of the literal tokens the caller declared it expected to find there.
Variants§
Comment(Comment)
A comment found in the gap.
Punct(&'static str)
One expected literal token (an operator symbol, delimiter, comma, or keyword).
Trait Implementations§
impl Eq for GapPiece
impl StructuralPartialEq for GapPiece
Auto Trait Implementations§
impl Freeze for GapPiece
impl RefUnwindSafe for GapPiece
impl Send for GapPiece
impl Sync for GapPiece
impl Unpin for GapPiece
impl UnsafeUnpin for GapPiece
impl UnwindSafe for GapPiece
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