pub struct Closure<InputVars, Expr> {
pub input_vars: InputVars,
pub inside_block: Expr,
}Expand description
Writes a closure. Adds new lines inside the brackets, wrapping the inner expression.
Fields§
§input_vars: InputVarsThe input variables. Should be a sequence. They will be comma separated and placed within the pipes. To use no input variables, use NoOpSeq.
inside_block: ExprThe expression inside the closure block.
Trait Implementations§
Auto Trait Implementations§
impl<InputVars, Expr> Freeze for Closure<InputVars, Expr>
impl<InputVars, Expr> RefUnwindSafe for Closure<InputVars, Expr>where
InputVars: RefUnwindSafe,
Expr: RefUnwindSafe,
impl<InputVars, Expr> Send for Closure<InputVars, Expr>
impl<InputVars, Expr> Sync for Closure<InputVars, Expr>
impl<InputVars, Expr> Unpin for Closure<InputVars, Expr>
impl<InputVars, Expr> UnwindSafe for Closure<InputVars, Expr>where
InputVars: UnwindSafe,
Expr: 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