[−][src]Enum dyon::ast::Expression
Expression.
Variants
Link expression.
Object expression.
Array expression.
Array fill expression.
Return(Box<Expression>)
Return expression.
Returns with value expression.
Break expression.
Continue expression.
Block expression.
Go call expression.
Call expression.
Call external function.
CallReturn(Box<CallReturn>)
Call external function that returns something.
Call external function with lazy invariant.
CallLoaded(Box<CallLoaded>)
Call loaded function.
Binary operator.
Unary operator.
Item expression.
Assignment expression.
4D vector expression.
4D matrix expression.
For expression, e.g. for i := 0; i < 10; i += 1 { ... }
.
For-n expression.
For-in expression.
Sum for-n expression.
Sum-in for-n expression.
Component-wise 4D vector sum for-n-loop.
Product for-n expression.
Product-in for-n loop.
Component-wise 4D vector product for-n-loop.
Min for-n expression.
Min-in for-n expression.
Max for-n expression.
Max-in for-n expression.
Sift for-n expression.
Sift-in expression.
Any expression.
Any-in expression.
All-for expression.
All-in expression.
Link-for expression.
Link-in expression.
If-expression.
Variable.
This means it contains no members that depends on other expressions.
Try(Box<Expression>)
Try expression using ?
.
4D vector swizzle expression.
Closure expression.
CallClosure(Box<CallClosure>)
Call closure expression.
Grab expression.
Try expression, e.g. try x
.
In-type expression.
Implementations
impl Expression
[src]
pub fn from_meta_data(
file: &Arc<String>,
source: &Arc<String>,
node: &str,
convert: Convert,
ignored: &mut Vec<Range>
) -> Result<(Range, Expression), ()>
[src]
file: &Arc<String>,
source: &Arc<String>,
node: &str,
convert: Convert,
ignored: &mut Vec<Range>
) -> Result<(Range, Expression), ()>
Creates expression from meta data.
pub fn source_range(&self) -> Range
[src]
Gets the range in source.
Trait Implementations
impl Clone for Expression
[src]
fn clone(&self) -> Expression
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for Expression
[src]
impl Sync for Expression
[src]
Auto Trait Implementations
impl !RefUnwindSafe for Expression
impl Send for Expression
impl Unpin for Expression
impl !UnwindSafe for Expression
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
U: TryFrom<T>,