[][src]Struct sixtyfps_compilerlib::expression_tree::ExpressionSpanned

pub struct ExpressionSpanned {
    pub expression: Expression,
    pub span: Option<(SourceFile, Span)>,
}

Fields

expression: Expressionspan: Option<(SourceFile, Span)>

Implementations

impl ExpressionSpanned[src]

Methods from Deref<Target = Expression>

pub fn ty(&self) -> Type[src]

Return the type of this property

pub fn visit(&self, visitor: impl FnMut(&Self))[src]

Call the visitor for each sub-expression. (note: this function does not recurse)

pub fn visit_mut(&mut self, visitor: impl FnMut(&mut Self))[src]

pub fn is_constant(&self) -> bool[src]

pub fn is_rw(&self) -> bool[src]

Return true if the expression is a "lvalue" that can be used as the left hand side of a = or += or similar

Trait Implementations

impl Clone for ExpressionSpanned[src]

impl Debug for ExpressionSpanned[src]

impl Default for ExpressionSpanned[src]

impl Deref for ExpressionSpanned[src]

type Target = Expression

The resulting type after dereferencing.

impl DerefMut for ExpressionSpanned[src]

impl From<Expression> for ExpressionSpanned[src]

impl Spanned for ExpressionSpanned[src]

impl SpannedWithSourceFile for ExpressionSpanned[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.