pub struct IfChain<'d> {
pub links: Vec<Statement<'d>>,
pub thens: Vec<Statement<'d>>,
pub otherwise: Option<Statement<'d>>,
}Expand description
The if / else if series a unique/unique0/priority qualifier on
the first if applies to (§12.4.2: “the entire series of if-else-if
conditions”): the condition and then-statement of each link, in source
order, and the final else statement if there is one. A nested
else if carries no qualifier of its own (the grammar has none); an
else holding a qualified if of its own is the final else and a
separate statement.
Fields§
§links: Vec<Statement<'d>>The if statement of each link (its predicate is links[i] .conditions(): plain, &&&-chained, or pattern-matching, §12.6).
thens: Vec<Statement<'d>>§otherwise: Option<Statement<'d>>Auto Trait Implementations§
impl<'d> !RefUnwindSafe for IfChain<'d>
impl<'d> !UnwindSafe for IfChain<'d>
impl<'d> Freeze for IfChain<'d>
impl<'d> Send for IfChain<'d>
impl<'d> Sync for IfChain<'d>
impl<'d> Unpin for IfChain<'d>
impl<'d> UnsafeUnpin for IfChain<'d>
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