[−][src]Enum zeta::parser::ast::StatementData
Variants
Block(Block)
Module
Fields of Module
name: Identifier
body: Option<Block>
Import
Fields of Import
path: String
alias: Option<Identifier>
Export(Box<Statement>)
Use
Fields of Use
identifier_chain: Vec<Identifier>
alias: Option<Identifier>
TypeAlias
Fields of TypeAlias
name: Identifier
ty: TypeExpression
Struct
Fields of Struct
name: Identifier
fields: Option<Vec<StructField>>
Union
Fields of Union
name: Identifier
fields: Option<Vec<StructField>>
Enum
Fields of Enum
Sum
Fields of Sum
name: Identifier
fields: Option<Vec<StructField>>
Impl
Fields of Impl
operand: TypeExpression
body: Block
Function
Fields of Function
name: FunctionIdentifier
parameters: Vec<FunctionParameter>
return_ty: Option<TypeExpression>
body: Option<Block>
Declaration
Fields of Declaration
Assignment
Fields of Assignment
target: Expression
value: Expression
ModAssignment
Fields of ModAssignment
LoopControl
Fields of LoopControl
ty: LoopControlType
label: Option<Identifier>
Return(Option<Expression>)
Conditional(ConditionalBlock)
Match(MatchBlock)
For
Fields of For
While
Fields of While
Loop
Fields of Loop
Expression(Expression)
Methods
impl StatementData
[src]
pub fn requires_semi(&self) -> bool
[src]
pub fn evaluates_to_expression(&self) -> bool
[src]
pub fn is_block(&self) -> bool
[src]
pub fn is_module(&self) -> bool
[src]
pub fn is_import(&self) -> bool
[src]
pub fn is_export(&self) -> bool
[src]
pub fn is_use(&self) -> bool
[src]
pub fn is_type_alias(&self) -> bool
[src]
pub fn is_struct(&self) -> bool
[src]
pub fn is_union(&self) -> bool
[src]
pub fn is_enum(&self) -> bool
[src]
pub fn is_sum(&self) -> bool
[src]
pub fn is_impl(&self) -> bool
[src]
pub fn is_function(&self) -> bool
[src]
pub fn is_declaration(&self) -> bool
[src]
pub fn is_assignment(&self) -> bool
[src]
pub fn is_loop_control(&self) -> bool
[src]
pub fn is_return(&self) -> bool
[src]
pub fn is_conditional(&self) -> bool
[src]
pub fn is_for(&self) -> bool
[src]
pub fn is_while(&self) -> bool
[src]
pub fn is_loop(&self) -> bool
[src]
pub fn is_match(&self) -> bool
[src]
pub fn is_expression(&self) -> bool
[src]
Trait Implementations
impl Clone for StatementData
[src]
fn clone(&self) -> StatementData
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for StatementData
[src]
Auto Trait Implementations
impl Unpin for StatementData
impl Sync for StatementData
impl Send for StatementData
impl UnwindSafe for StatementData
impl RefUnwindSafe for StatementData
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,