Struct edlang_ast::IfStmt
source · pub struct IfStmt {
pub condition: Expression,
pub then_block: Block,
pub else_block: Option<Block>,
pub span: Span,
}
Fields§
§condition: Expression
§then_block: Block
§else_block: Option<Block>
§span: Span
Trait Implementations§
source§impl Ord for IfStmt
impl Ord for IfStmt
source§impl PartialEq for IfStmt
impl PartialEq for IfStmt
source§impl PartialOrd for IfStmt
impl PartialOrd for IfStmt
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for IfStmt
impl StructuralPartialEq for IfStmt
Auto Trait Implementations§
impl Freeze for IfStmt
impl RefUnwindSafe for IfStmt
impl Send for IfStmt
impl Sync for IfStmt
impl Unpin for IfStmt
impl UnwindSafe for IfStmt
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