[−][src]Enum zeta::parser::ast::ExpressionData
Variants
Primary(Primary)
AddressOf
Fields of AddressOf
mutable: bool
value: Box<Expression>
Unary
Fields of Unary
op: OperatorType
operand: Box<Expression>
Binary
Fields of Binary
MatchExpression
Fields of MatchExpression
left: Box<Expression>
right: Box<Expression>
Member
Fields of Member
operand: Box<Expression>
member_name: Identifier
Subscript
Fields of Subscript
operand: Box<Expression>
subscript: Box<Expression>
Call
Fields of Call
callee: Box<Expression>
parameters: Vec<Expression>
Cast
Fields of Cast
operand: Box<Expression>
as_ty: Option<Box<TypeExpression>>
Compound
Fields of Compound
value_ty: Option<Box<TypeExpression>>
fields: Vec<CompoundField>
Block(Box<Block>)
Conditional(Box<ConditionalBlock>)
Match(Box<MatchBlock>)
Methods
impl ExpressionData
[src]
pub fn is_primary(&self) -> bool
[src]
pub fn is_unary(&self) -> bool
[src]
pub fn is_binary(&self) -> bool
[src]
pub fn is_member(&self) -> bool
[src]
pub fn is_subscript(&self) -> bool
[src]
pub fn is_call(&self) -> bool
[src]
pub fn is_cast(&self) -> bool
[src]
pub fn is_compound(&self) -> bool
[src]
pub fn is_block(&self) -> bool
[src]
pub fn is_conditional(&self) -> bool
[src]
pub fn is_match(&self) -> bool
[src]
Trait Implementations
impl Clone for ExpressionData
[src]
fn clone(&self) -> ExpressionData
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for ExpressionData
[src]
Auto Trait Implementations
impl Unpin for ExpressionData
impl Sync for ExpressionData
impl Send for ExpressionData
impl UnwindSafe for ExpressionData
impl RefUnwindSafe for ExpressionData
Blanket Implementations
impl<T> From<T> 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> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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> 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> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,