Struct ast::expression::Selection
source · 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: SpanTrait Implementations§
source§impl PartialEq for Selection
impl PartialEq for Selection
impl StructuralPartialEq for Selection
Auto Trait Implementations§
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