Struct xlang_syntax::ast::If
source · [−]pub struct If<'input> {
pub loc: Loc,
pub cond: Box<Expr<'input>>,
pub block: Block<'input>,
pub branches: Vec<IfBranch<'input>>,
}Expand description
An if statement.
Fields
loc: Loccond: Box<Expr<'input>>block: Block<'input>branches: Vec<IfBranch<'input>>Implementations
Trait Implementations
sourceimpl<'input> PartialEq<If<'input>> for If<'input>
impl<'input> PartialEq<If<'input>> for If<'input>
impl<'input> StructuralPartialEq for If<'input>
Auto Trait Implementations
impl<'input> RefUnwindSafe for If<'input>
impl<'input> Send for If<'input>
impl<'input> Sync for If<'input>
impl<'input> Unpin for If<'input>
impl<'input> UnwindSafe for If<'input>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more