Enum tusk_parser::Expression [−][src]
pub enum Expression {}Show variants
True, False, Null, String(String), Integer(i64), Float(f64), Variable(String), TypedVariable(String, String), Identifier(String), Binary(Box<Expression>, BinaryOp, Box<Expression>), Assign(Box<Expression>, Box<Expression>), Concat(Box<Expression>, Box<Expression>), Array(Vec<Expression>), ArrayAccess(Box<Expression>, Option<Box<Expression>>), ArrayItem { key: Box<Expression>, value: Box<Expression>, }, PropertyAccess(Box<Expression>, Box<Expression>), New { class: Box<Expression>, args: Vec<Expression>, }, Call { target: Box<Expression>, args: Vec<Expression>, }, MethodCall { target: Box<Expression>, method: Box<Expression>, args: Vec<Expression>, }, Closure(Function), Unary(Box<Expression>), Negate(Box<Expression>), BitwiseNot(Box<Expression>),
Variants
String(String)
Integer(i64)
Float(f64)
Variable(String)
Identifier(String)
Binary(Box<Expression>, BinaryOp, Box<Expression>)
Assign(Box<Expression>, Box<Expression>)
Concat(Box<Expression>, Box<Expression>)
Array(Vec<Expression>)
ArrayAccess(Box<Expression>, Option<Box<Expression>>)
Show fields
Fields of ArrayItem
key: Box<Expression>
value: Box<Expression>
PropertyAccess(Box<Expression>, Box<Expression>)
Show fields
Fields of New
class: Box<Expression>
args: Vec<Expression>
Show fields
Fields of Call
target: Box<Expression>
args: Vec<Expression>
Show fields
Fields of MethodCall
Closure(Function)
Unary(Box<Expression>)
Negate(Box<Expression>)
BitwiseNot(Box<Expression>)
Implementations
impl Expression
[src]
impl Expression
[src]pub fn make_infix(
lhs: Expression,
operator: &TokenType,
rhs: Expression
) -> Self
[src]
lhs: Expression,
operator: &TokenType,
rhs: Expression
) -> Self
Trait Implementations
impl Clone for Expression
[src]
impl Clone for Expression
[src]fn clone(&self) -> Expression
[src]
fn clone(&self) -> Expression
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl Debug for Expression
[src]
impl Debug for Expression
[src]impl PartialEq<Expression> for Expression
[src]
impl PartialEq<Expression> for Expression
[src]fn eq(&self, other: &Expression) -> bool
[src]
fn eq(&self, other: &Expression) -> bool
[src]This method tests for self
and other
values to be equal, and is used
by ==
. Read more
fn ne(&self, other: &Expression) -> bool
[src]
fn ne(&self, other: &Expression) -> bool
[src]This method tests for !=
.
impl Serialize for Expression
[src]
impl Serialize for Expression
[src]impl StructuralPartialEq for Expression
[src]
Auto Trait Implementations
impl RefUnwindSafe for Expression
impl Send for Expression
impl Sync for Expression
impl Unpin for Expression
impl UnwindSafe for Expression
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more