[−][src]Struct sixtyfps_compilerlib::expression_tree::ExpressionSpanned
Fields
expression: Expressionspan: Option<(SourceFile, Span)>Implementations
impl ExpressionSpanned[src]
pub fn new_uncompiled(node: SyntaxNodeWithSourceFile) -> Self[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]
fn clone(&self) -> ExpressionSpanned[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Debug for ExpressionSpanned[src]
impl Default for ExpressionSpanned[src]
fn default() -> ExpressionSpanned[src]
impl Deref for ExpressionSpanned[src]
type Target = Expression
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target[src]
impl DerefMut for ExpressionSpanned[src]
impl From<Expression> for ExpressionSpanned[src]
fn from(expression: Expression) -> Self[src]
impl Spanned for ExpressionSpanned[src]
impl SpannedWithSourceFile for ExpressionSpanned[src]
fn source_file(&self) -> Option<&SourceFile>[src]
Auto Trait Implementations
impl !RefUnwindSafe for ExpressionSpanned
impl !Send for ExpressionSpanned
impl !Sync for ExpressionSpanned
impl Unpin for ExpressionSpanned
impl !UnwindSafe for ExpressionSpanned
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,