pub struct WhenStatement<'a> {
pub when_span: Span,
pub when: Expression<'a>,
pub then_span: Span,
pub then: Vec<Statement<'a>>,
}Expand description
When part of case statement
Fields§
§when_span: SpanSpan of “WHEN”
when: Expression<'a>Expression who’s match yields execution then
then_span: SpanSpan of “THEN”
then: Vec<Statement<'a>>Statements to execute if when matches
Trait Implementations§
Source§impl<'a> Clone for WhenStatement<'a>
impl<'a> Clone for WhenStatement<'a>
Source§fn clone(&self) -> WhenStatement<'a>
fn clone(&self) -> WhenStatement<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for WhenStatement<'a>
impl<'a> Debug for WhenStatement<'a>
Auto Trait Implementations§
impl<'a> Freeze for WhenStatement<'a>
impl<'a> RefUnwindSafe for WhenStatement<'a>
impl<'a> Send for WhenStatement<'a>
impl<'a> Sync for WhenStatement<'a>
impl<'a> Unpin for WhenStatement<'a>
impl<'a> UnsafeUnpin for WhenStatement<'a>
impl<'a> UnwindSafe for WhenStatement<'a>
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