pub struct CoverStmts<'a>(pub &'a Expr);Expand description
Renders an Expr in a position where a statement-shaped expression would
be ambiguous, parenthesising it when required.
Value-shaped expressions render bare. Statement-shaped ones (SELECT, CREATE,
IF, …) are wrapped in parentheses so the result reparses to the same tree
when spliced into a larger query. RETURN is the one conditional case: it
only needs covering when it carries a FETCH clause.
Tuple Fields§
§0: &'a ExprTrait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for CoverStmts<'a>
impl<'a> RefUnwindSafe for CoverStmts<'a>
impl<'a> Send for CoverStmts<'a>
impl<'a> Sync for CoverStmts<'a>
impl<'a> Unpin for CoverStmts<'a>
impl<'a> UnsafeUnpin for CoverStmts<'a>
impl<'a> UnwindSafe for CoverStmts<'a>
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