pub struct Block<T: StatementNode<Scope = Scope>, Scope>(pub T, pub PhantomData<Scope>);
Expand description
A block of statements: { ... }
Tuple Fields§
§0: T
§1: PhantomData<Scope>
Trait Implementations§
Source§impl<T: StatementNode<Scope = Scope>, Scope> Expr for Block<T, Scope>
impl<T: StatementNode<Scope = Scope>, Scope> Expr for Block<T, Scope>
Source§const COMPLEXITY: usize
const COMPLEXITY: usize
Trivial measure of complexity: a variable is 1, an operation is 1, a binary op is 2, a conditional is 3, etc.
Auto Trait Implementations§
impl<T, Scope> Freeze for Block<T, Scope>where
T: Freeze,
impl<T, Scope> RefUnwindSafe for Block<T, Scope>where
T: RefUnwindSafe,
Scope: RefUnwindSafe,
impl<T, Scope> Send for Block<T, Scope>
impl<T, Scope> Sync for Block<T, Scope>
impl<T, Scope> Unpin for Block<T, Scope>
impl<T, Scope> UnwindSafe for Block<T, Scope>where
T: UnwindSafe,
Scope: UnwindSafe,
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