pub struct EasyParenthesized<T>(pub T);
Expand description
Parses inner type parenthesized.
Implements EasyPeek
and peeks opening parenthesis.
Tuple Fields§
§0: T
Trait Implementations§
Source§impl<T: Clone> Clone for EasyParenthesized<T>
impl<T: Clone> Clone for EasyParenthesized<T>
Source§fn clone(&self) -> EasyParenthesized<T>
fn clone(&self) -> EasyParenthesized<T>
Returns a copy 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<T: Debug> Debug for EasyParenthesized<T>
impl<T: Debug> Debug for EasyParenthesized<T>
Source§impl<T: Default> Default for EasyParenthesized<T>
impl<T: Default> Default for EasyParenthesized<T>
Source§fn default() -> EasyParenthesized<T>
fn default() -> EasyParenthesized<T>
Returns the “default value” for a type. Read more
Source§impl<T> Deref for EasyParenthesized<T>
impl<T> Deref for EasyParenthesized<T>
Source§impl<T> EasyPeek for EasyParenthesized<T>where
T: Parse,
impl<T> EasyPeek for EasyParenthesized<T>where
T: Parse,
Source§fn peek(lookahead1: &Lookahead1<'_>) -> bool
fn peek(lookahead1: &Lookahead1<'_>) -> bool
Peek head token before parsing.
Source§fn peek_stream(stream: ParseStream<'_>) -> bool
fn peek_stream(stream: ParseStream<'_>) -> bool
Peek head token before parsing.
Source§impl<T: Hash> Hash for EasyParenthesized<T>
impl<T: Hash> Hash for EasyParenthesized<T>
Source§impl<T: Ord> Ord for EasyParenthesized<T>
impl<T: Ord> Ord for EasyParenthesized<T>
Source§fn cmp(&self, other: &EasyParenthesized<T>) -> Ordering
fn cmp(&self, other: &EasyParenthesized<T>) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<T> Parse for EasyParenthesized<T>where
T: Parse,
impl<T> Parse for EasyParenthesized<T>where
T: Parse,
fn parse(input: ParseStream<'_>) -> Result<Self>
Source§impl<T: PartialEq> PartialEq for EasyParenthesized<T>
impl<T: PartialEq> PartialEq for EasyParenthesized<T>
Source§impl<T: PartialOrd> PartialOrd for EasyParenthesized<T>
impl<T: PartialOrd> PartialOrd for EasyParenthesized<T>
Source§impl<T> ToTokens for EasyParenthesized<T>where
T: ToTokens,
impl<T> ToTokens for EasyParenthesized<T>where
T: ToTokens,
Source§fn to_tokens(&self, tokens: &mut TokenStream)
fn to_tokens(&self, tokens: &mut TokenStream)
Source§fn to_token_stream(&self) -> TokenStream
fn to_token_stream(&self) -> TokenStream
Source§fn into_token_stream(self) -> TokenStream
fn into_token_stream(self) -> TokenStream
impl<T: Copy> Copy for EasyParenthesized<T>
impl<T: Eq> Eq for EasyParenthesized<T>
impl<T> StructuralPartialEq for EasyParenthesized<T>
Auto Trait Implementations§
impl<T> Freeze for EasyParenthesized<T>where
T: Freeze,
impl<T> RefUnwindSafe for EasyParenthesized<T>where
T: RefUnwindSafe,
impl<T> Send for EasyParenthesized<T>where
T: Send,
impl<T> Sync for EasyParenthesized<T>where
T: Sync,
impl<T> Unpin for EasyParenthesized<T>where
T: Unpin,
impl<T> UnwindSafe for EasyParenthesized<T>where
T: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Spanned for Twhere
T: Spanned + ?Sized,
impl<T> Spanned for Twhere
T: Spanned + ?Sized,
Source§fn span(&self) -> Span
fn span(&self) -> Span
Returns a
Span
covering the complete contents of this syntax tree
node, or Span::call_site()
if this node is empty.