pub struct FlowControl {
pub expr: Expr,
pub body: StmtBlock,
pub branch: StmtBlock,
}Expand description
(internals) A flow control block containing:
- an expression,
- a statements body
- an alternate statements body
Exported under the internals feature only.
Fields§
§expr: ExprFlow control expression.
body: StmtBlockMain body.
branch: StmtBlockBranch body.
Trait Implementations§
Source§impl Clone for FlowControl
impl Clone for FlowControl
Source§fn clone(&self) -> FlowControl
fn clone(&self) -> FlowControl
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 Debug for FlowControl
impl Debug for FlowControl
Auto Trait Implementations§
impl Freeze for FlowControl
impl !RefUnwindSafe for FlowControl
impl !Send for FlowControl
impl !Sync for FlowControl
impl Unpin for FlowControl
impl !UnwindSafe for FlowControl
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Variant for T
impl<T> Variant for T
Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert this
Variant trait object to &mut dyn Any.Source§fn as_boxed_any(self: Box<T>) -> Box<dyn Any>
fn as_boxed_any(self: Box<T>) -> Box<dyn Any>
Convert this
Variant trait object to Box<dyn Any>.