Struct moore_vhdl::hir::IfStmt
source · [−]pub struct IfStmt {
pub branches: Vec<(ExprRef, Vec<SeqStmtRef>)>,
pub otherwise: Option<Vec<SeqStmtRef>>,
}
Expand description
An if statement.
See IEEE 1076-2008 section 10.8.
Fields
branches: Vec<(ExprRef, Vec<SeqStmtRef>)>
The condition and statements of each branch.
otherwise: Option<Vec<SeqStmtRef>>
The optional else branch.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for IfStmt
impl Send for IfStmt
impl Sync for IfStmt
impl Unpin for IfStmt
impl UnwindSafe for IfStmt
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more