pub struct If {
pub pos_in_src: SourceRange,
pub condition: Box<dyn MersStatement>,
pub on_true: Box<dyn MersStatement>,
pub on_false: Option<Box<dyn MersStatement>>,
}Fields§
§pos_in_src: SourceRange§condition: Box<dyn MersStatement>§on_true: Box<dyn MersStatement>§on_false: Option<Box<dyn MersStatement>>Trait Implementations§
Source§impl MersStatement for If
impl MersStatement for If
fn has_scope(&self) -> bool
fn compile_custom( &self, info: &mut Info<Local>, comp: CompInfo, ) -> Result<Box<dyn MersStatement>, CheckError>
fn source_range(&self) -> SourceRange
fn inner_statements(&self) -> Vec<&dyn MersStatement>
fn as_any(&self) -> &dyn Any
fn compile( &self, info: &mut Info, comp: CompInfo, ) -> Result<Box<dyn MersStatement>, CheckError>
Auto Trait Implementations§
impl Freeze for If
impl !RefUnwindSafe for If
impl Send for If
impl Sync for If
impl Unpin for If
impl !UnwindSafe for If
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