pub enum TextEnd {
Closed {
end: usize,
first_hole: Option<usize>,
},
Unterminated {
stopped: usize,
},
}Expand description
Where a "…" literal ends, and whether it has any holes.
Variants§
Closed
The literal closed on its own line with every hole balanced.
Fields
Unterminated
The line ended, the text ended, a hole never closed, or the nesting bound
was reached. The index is where the scan stopped, so
&src[open..stopped] is still a bounded token — the same bound ADR-094
gave an unterminated template.
Trait Implementations§
impl Copy for TextEnd
impl Eq for TextEnd
impl StructuralPartialEq for TextEnd
Auto Trait Implementations§
impl Freeze for TextEnd
impl RefUnwindSafe for TextEnd
impl Send for TextEnd
impl Sync for TextEnd
impl Unpin for TextEnd
impl UnsafeUnpin for TextEnd
impl UnwindSafe for TextEnd
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