Struct syn::ExprIndex [] [src]

pub struct ExprIndex {
    pub attrs: Vec<Attribute>,
    pub expr: Box<Expr>,
    pub bracket_token: Bracket,
    pub index: Box<Expr>,
}

A square bracketed indexing expression: vector[2].

This type is available if Syn is built with the "derive" or "full" feature.

Fields

Trait Implementations

impl ToTokens for ExprIndex
[src]

Write self to the given TokenStream. Read more

Convert self directly into a TokenStream object. Read more

impl Clone for ExprIndex
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl From<ExprIndex> for Expr
[src]

Performs the conversion.

Auto Trait Implementations

impl !Send for ExprIndex

impl !Sync for ExprIndex