Struct syn::ExprGroup [−][src]
An expression contained within invisible delimiters.
This variant is important for faithfully representing the precedence
of expressions and is related to None
-delimited spans in a
TokenStream
.
This type is available if Syn is built with the "full"
feature.
Fields
attrs: Vec<Attribute>
group_token: Group
expr: Box<Expr>
Trait Implementations
impl Synom for ExprGroup
[src]
impl Synom for ExprGroup
fn parse(i: Cursor) -> PResult<Self>
[src]
fn parse(i: Cursor) -> PResult<Self>
fn description() -> Option<&'static str>
[src]
fn description() -> Option<&'static str>
A short name of the type being parsed. Read more
impl ToTokens for ExprGroup
[src]
impl ToTokens for ExprGroup
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
Write self
to the given TokenStream
. Read more
fn into_token_stream(self) -> TokenStream
[src]
fn into_token_stream(self) -> TokenStream
Convert self
directly into a TokenStream
object. Read more
impl Debug for ExprGroup
[src]
impl Debug for ExprGroup
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Eq for ExprGroup
[src]
impl Eq for ExprGroup
impl PartialEq for ExprGroup
[src]
impl PartialEq for ExprGroup
fn eq(&self, other: &ExprGroup) -> bool
[src]
fn eq(&self, other: &ExprGroup) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &ExprGroup) -> bool
[src]
fn ne(&self, other: &ExprGroup) -> bool
This method tests for !=
.
impl Hash for ExprGroup
[src]
impl Hash for ExprGroup
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl Clone for ExprGroup
[src]
impl Clone for ExprGroup
fn clone(&self) -> ExprGroup
[src]
fn clone(&self) -> ExprGroup
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl From<ExprGroup> for Expr
[src]
impl From<ExprGroup> for Expr