pub struct CloseSquare<'source> {
pub lexeme: &'source str,
pub span: Range<usize>,
}Fields§
§lexeme: &'source str§span: Range<usize>Trait Implementations§
Source§impl<'source> Clone for CloseSquare<'source>
impl<'source> Clone for CloseSquare<'source>
Source§fn clone(&self) -> CloseSquare<'source>
fn clone(&self) -> CloseSquare<'source>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'source> Debug for CloseSquare<'source>
impl<'source> Debug for CloseSquare<'source>
Source§impl Pair for CloseSquare<'_>
impl Pair for CloseSquare<'_>
Source§type Open<'source> = OpenSquare<'source>
type Open<'source> = OpenSquare<'source>
The type of the opening token, defined in the
token module.Source§type Close<'source> = CloseSquare<'source>
type Close<'source> = CloseSquare<'source>
The type of the closing token, defined in the
token module.Source§impl<'source> Parse<'source> for CloseSquare<'source>
impl<'source> Parse<'source> for CloseSquare<'source>
Source§impl<'source> PartialEq for CloseSquare<'source>
impl<'source> PartialEq for CloseSquare<'source>
impl<'source> StructuralPartialEq for CloseSquare<'source>
Auto Trait Implementations§
impl<'source> Freeze for CloseSquare<'source>
impl<'source> RefUnwindSafe for CloseSquare<'source>
impl<'source> Send for CloseSquare<'source>
impl<'source> Sync for CloseSquare<'source>
impl<'source> Unpin for CloseSquare<'source>
impl<'source> UnwindSafe for CloseSquare<'source>
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