Struct sixtyfps_compilerlib::expression_tree::BindingExpression [−][src]
pub struct BindingExpression { pub expression: Expression, pub span: Option<SourceLocation>, pub priority: i32, }
The expression in the Element::binding hash table
Fields
expression: Expression
span: Option<SourceLocation>
The location of this expression in the source code
priority: i32
How deep is this binding declared in the hierarchy. When two binding are conflicting for the same priority (because of two way binding), the lower priority wins.
Implementations
impl BindingExpression
[src]
impl BindingExpression
[src]pub fn new_uncompiled(node: SyntaxNode) -> 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 visit_recursive(&self, visitor: &mut dyn FnMut(&Self))
[src]
Visit itself and each sub expression recursively
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 BindingExpression
[src]
impl Clone for BindingExpression
[src]fn clone(&self) -> BindingExpression
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Default for BindingExpression
[src]
impl Default for BindingExpression
[src]fn default() -> BindingExpression
[src]
impl Deref for BindingExpression
[src]
impl Deref for BindingExpression
[src]type Target = Expression
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target
[src]
impl From<Expression> for BindingExpression
[src]
impl From<Expression> for BindingExpression
[src]fn from(expression: Expression) -> Self
[src]
impl Spanned for BindingExpression
[src]
impl Spanned for BindingExpression
[src]fn span(&self) -> Span
[src]
fn source_file(&self) -> Option<&SourceFile>
[src]
fn to_source_location(&self) -> SourceLocation
[src]
Auto Trait Implementations
impl !RefUnwindSafe for BindingExpression
impl !RefUnwindSafe for BindingExpression
impl !Send for BindingExpression
impl !Send for BindingExpression
impl !Sync for BindingExpression
impl !Sync for BindingExpression
impl Unpin for BindingExpression
impl Unpin for BindingExpression
impl !UnwindSafe for BindingExpression
impl !UnwindSafe for BindingExpression