pub struct DelimiterPair<'src> {
pub close: GraphQLToken<'src>,
pub open: GraphQLToken<'src>,
}Expand description
A matched pair of delimiter tokens (parentheses, brackets, or braces). Bundled into one struct so that an open delimiter without a matching close is unrepresentable.
Fields§
§close: GraphQLToken<'src>§open: GraphQLToken<'src>Trait Implementations§
Source§impl<'src> Clone for DelimiterPair<'src>
impl<'src> Clone for DelimiterPair<'src>
Source§fn clone(&self) -> DelimiterPair<'src>
fn clone(&self) -> DelimiterPair<'src>
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<'src> Debug for DelimiterPair<'src>
impl<'src> Debug for DelimiterPair<'src>
Source§impl<'src> PartialEq for DelimiterPair<'src>
impl<'src> PartialEq for DelimiterPair<'src>
impl<'src> StructuralPartialEq for DelimiterPair<'src>
Auto Trait Implementations§
impl<'src> Freeze for DelimiterPair<'src>
impl<'src> RefUnwindSafe for DelimiterPair<'src>
impl<'src> Send for DelimiterPair<'src>
impl<'src> Sync for DelimiterPair<'src>
impl<'src> Unpin for DelimiterPair<'src>
impl<'src> UnsafeUnpin for DelimiterPair<'src>
impl<'src> UnwindSafe for DelimiterPair<'src>
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