Struct proc_easy::EasyParenthesized
source · 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<EasyParenthesized<T>> for EasyParenthesized<T>
impl<T: PartialEq> PartialEq<EasyParenthesized<T>> for EasyParenthesized<T>
source§fn eq(&self, other: &EasyParenthesized<T>) -> bool
fn eq(&self, other: &EasyParenthesized<T>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<T: PartialOrd> PartialOrd<EasyParenthesized<T>> for EasyParenthesized<T>
impl<T: PartialOrd> PartialOrd<EasyParenthesized<T>> for EasyParenthesized<T>
source§fn partial_cmp(&self, other: &EasyParenthesized<T>) -> Option<Ordering>
fn partial_cmp(&self, other: &EasyParenthesized<T>) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§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> StructuralEq for EasyParenthesized<T>
impl<T> StructuralPartialEq for EasyParenthesized<T>
Auto Trait Implementations§
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> 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.