[−][src]Enum dyon::ast::Expression
Expression.
Variants
Link(Box<Link>)
Link expression.
Object(Box<Object>)
Object expression.
Array(Box<Array>)
Array expression.
ArrayFill(Box<ArrayFill>)
Array fill expression.
Return(Box<Expression>)
Return expression.
ReturnVoid(Box<Range>)
Returns with value expression.
Break(Box<Break>)
Break expression.
Continue(Box<Continue>)
Continue expression.
Block(Box<Block>)
Block expression.
Go(Box<Go>)
Go call expression.
Call(Box<Call>)
Call expression.
Item(Box<Item>)
Item expression.
BinOp(Box<BinOpExpression>)
Binary operator expression.
Assign(Box<Assign>)
Assignment expression.
Vec4(Box<Vec4>)
4D vector expression.
Mat4(Box<Mat4>)
4D matrix expression.
For(Box<For>)
For expression, e.g. for i := 0; i < 10; i += 1 { ... }
.
ForN(Box<ForN>)
For-n expression.
ForIn(Box<ForIn>)
For-in expression.
Sum(Box<ForN>)
Sum for-n expression.
SumIn(Box<ForIn>)
Sum-in for-n expression.
SumVec4(Box<ForN>)
Component-wise 4D vector sum for-n-loop.
Prod(Box<ForN>)
Product for-n expression.
ProdIn(Box<ForIn>)
Product-in for-n loop.
ProdVec4(Box<ForN>)
Component-wise 4D vector product for-n-loop.
Min(Box<ForN>)
Min for-n expression.
MinIn(Box<ForIn>)
Min-in for-n expression.
Max(Box<ForN>)
Max for-n expression.
MaxIn(Box<ForIn>)
Max-in for-n expression.
Sift(Box<ForN>)
Sift for-n expression.
SiftIn(Box<ForIn>)
Sift-in expression.
Any(Box<ForN>)
Any expression.
AnyIn(Box<ForIn>)
Any-in expression.
All(Box<ForN>)
All-for expression.
AllIn(Box<ForIn>)
All-in expression.
LinkFor(Box<ForN>)
Link-for expression.
LinkIn(Box<ForIn>)
Link-in expression.
If(Box<If>)
If-expression.
Compare(Box<Compare>)
Compare expression.
UnOp(Box<UnOpExpression>)
Unary operator expression.
Norm(Box<Norm>)
Vector normal, e.g |v|
.
Variable(Box<(Range, Variable)>)
Variable.
This means it contains no members that depends on other expressions.
Try(Box<Expression>)
Try expression using ?
.
Swizzle(Box<Swizzle>)
4D vector swizzle expression.
Closure(Arc<Closure>)
Closure expression.
CallClosure(Box<CallClosure>)
Call closure expression.
Grab(Box<Grab>)
Grab expression.
TryExpr(Box<TryExpr>)
Try expression, e.g. try x
.
In(Box<In>)
In-type expression.
Methods
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 Sync for Expression
[src]
impl Clone for Expression
[src]
fn clone(&self) -> Expression
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for Expression
[src]
Auto Trait Implementations
impl Send for Expression
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
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 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 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> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Typeable for T where
T: Any,
T: Any,