Struct rune::ast::ExprFieldAccess[][src]

pub struct ExprFieldAccess {
    pub attributes: Vec<Attribute>,
    pub expr: Expr,
    pub dot: Dot,
    pub expr_field: ExprField,
}

A field access <expr>.<field>.

use rune::{testing, ast};

testing::roundtrip::<ast::ExprFieldAccess>("foo.bar");
testing::roundtrip::<ast::ExprFieldAccess>("foo.bar::<A, B>");
testing::roundtrip::<ast::ExprFieldAccess>("foo.0.bar");
// Note: tuple accesses must be disambiguated.
testing::roundtrip::<ast::ExprFieldAccess>("(foo.0).1");

Fields

attributes: Vec<Attribute>

Attributes associated with expression.

expr: Expr

The expr where the field is being accessed.

dot: Dot

The parsed dot separator.

expr_field: ExprField

The field being accessed.

Trait Implementations

impl Clone for ExprFieldAccess[src]

impl Debug for ExprFieldAccess[src]

impl Eq for ExprFieldAccess[src]

impl Parse for ExprFieldAccess[src]

impl PartialEq<ExprFieldAccess> for ExprFieldAccess[src]

impl Spanned for ExprFieldAccess[src]

impl StructuralEq for ExprFieldAccess[src]

impl StructuralPartialEq for ExprFieldAccess[src]

impl ToTokens for ExprFieldAccess[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.