pub struct IfStmt { /* private fields */ }
Implementations§
Source§impl IfStmt
impl IfStmt
pub fn new( branches: Vec<IfBranchStmt>, else_body: Option<Vec<StmtNode>>, ) -> Self
pub fn set_else_body(&mut self, else_body: Option<Vec<StmtNode>>)
pub fn set_branches(&mut self, branches: Vec<IfBranchStmt>)
pub fn get_branches(&self) -> &Vec<IfBranchStmt>
pub fn get_else_body(&self) -> Option<Vec<StmtNode>>
Trait Implementations§
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