pub enum Expressions<'a> {
Expression(Vec<Node<'a>>),
Accessor {
left: Box<Node<'a>>,
right: Box<Node<'a>>,
},
Member {
name: Cow<'a, str>,
},
Literal {
value: Cow<'a, str>,
},
Call {
name: TypeName<'a>,
parameters: Vec<Node<'a>>,
},
Operator {
name: &'a str,
left: Box<Node<'a>>,
right: Box<Node<'a>>,
},
VariableDeclaration {
name: &'a str,
type: TypeName<'a>,
},
RawCode {
glsl: Option<&'a str>,
hlsl: Option<&'a str>,
msl: Option<&'a str>,
input: &'a [&'a str],
output: &'a [&'a str],
},
Macro {
name: &'a str,
body: Box<Node<'a>>,
},
Return {
value: Option<Box<Node<'a>>>,
},
Continue,
}Variants§
Expression(Vec<Node<'a>>)
Accessor
Member
Literal
Call
Operator
VariableDeclaration
RawCode
Fields
Macro
Return
Continue
Trait Implementations§
Source§impl<'a> Clone for Expressions<'a>
impl<'a> Clone for Expressions<'a>
Source§fn clone(&self) -> Expressions<'a>
fn clone(&self) -> Expressions<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<'a> Freeze for Expressions<'a>
impl<'a> RefUnwindSafe for Expressions<'a>
impl<'a> Send for Expressions<'a>
impl<'a> Sync for Expressions<'a>
impl<'a> Unpin for Expressions<'a>
impl<'a> UnsafeUnpin for Expressions<'a>
impl<'a> UnwindSafe for Expressions<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more