[][src]Struct full_moon::ast::VarExpression

pub struct VarExpression<'a> { /* fields omitted */ }

A complex expression used by Var, consisting of both a prefix and suffixes

Implementations

impl<'a> VarExpression<'a>[src]

pub fn new(prefix: Prefix<'a>) -> Self[src]

Returns a new VarExpression from the given prefix

pub fn prefix(&self) -> &Prefix<'a>[src]

The prefix of the expression, such as a name

pub fn iter_suffixes(&self) -> impl Iterator<Item = &Suffix<'a>>[src]

An iter over the suffixes, such as indexing or calling

pub fn with_prefix(self, prefix: Prefix<'a>) -> Self[src]

Returns a new VarExpression with the given prefix

pub fn with_suffixes(self, suffixes: Vec<Suffix<'a>>) -> Self[src]

Returns a new VarExpression with the given suffixes

Trait Implementations

impl<'a> Clone for VarExpression<'a>[src]

impl<'a> Debug for VarExpression<'a>[src]

impl<'de: 'a, 'a> Deserialize<'de> for VarExpression<'a>[src]

impl<'a> Display for VarExpression<'a>[src]

impl<'a> Node<'a> for VarExpression<'a>[src]

impl<'a> Owned for VarExpression<'a>[src]

type Owned = VarExpression<'static>

What an owned version of the object looks like. Usually contains a 'static lifetime.

impl<'a> PartialEq<VarExpression<'a>> for VarExpression<'a>[src]

impl<'a> Serialize for VarExpression<'a>[src]

impl<'a> StructuralPartialEq for VarExpression<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for VarExpression<'a>[src]

impl<'a> Send for VarExpression<'a>[src]

impl<'a> Sync for VarExpression<'a>[src]

impl<'a> Unpin for VarExpression<'a>[src]

impl<'a> UnwindSafe for VarExpression<'a>[src]

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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[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> ToString for T where
    T: Display + ?Sized
[src]

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.