pub enum FragmentEnd {
Hole(usize),
Close(usize),
}Expand description
What ends a run of literal text inside a "…".
Variants§
Hole(usize)
A hole opened. The index is of the {, so the fragment token the lexer
emits covers up to and including it.
Close(usize)
The literal closed. The index is just past the quote.
Trait Implementations§
Source§impl Clone for FragmentEnd
impl Clone for FragmentEnd
Source§fn clone(&self) -> FragmentEnd
fn clone(&self) -> FragmentEnd
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 FragmentEnd
Source§impl Debug for FragmentEnd
impl Debug for FragmentEnd
impl Eq for FragmentEnd
Source§impl PartialEq for FragmentEnd
impl PartialEq for FragmentEnd
impl StructuralPartialEq for FragmentEnd
Auto Trait Implementations§
impl Freeze for FragmentEnd
impl RefUnwindSafe for FragmentEnd
impl Send for FragmentEnd
impl Sync for FragmentEnd
impl Unpin for FragmentEnd
impl UnsafeUnpin for FragmentEnd
impl UnwindSafe for FragmentEnd
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