pub struct Selection {
pub condition: Box<Expression>,
pub conditional: StatementList,
pub else_conditional: Option<StatementList>,
pub span: Span,
}
Expand description
Represents a selection expression in the SAP language. For example:
if x > 5 then
display "x is greater than 5"
otherwise
display "x is less than or equal to 5"
end
Fields§
§condition: Box<Expression>
§conditional: StatementList
§else_conditional: Option<StatementList>
§span: Span
Trait Implementations§
impl StructuralPartialEq for Selection
Auto Trait Implementations§
impl Freeze for Selection
impl RefUnwindSafe for Selection
impl Send for Selection
impl Sync for Selection
impl Unpin for Selection
impl UnwindSafe for Selection
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