Struct rhai::FlowControl
source · 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: Expr
Flow control expression.
body: StmtBlock
Main body.
branch: StmtBlock
Branch body.
Trait Implementations§
source§impl Clone for FlowControl
impl Clone for FlowControl
source§fn clone(&self) -> FlowControl
fn clone(&self) -> FlowControl
Returns a copy 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 !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