pub struct ParenthesesAround<Expr>(pub Expr);Expand description
Surrounds an expression with parentheses, rendering as (Expr).
Even if the expression is empty, the parentheses will still be rendered.
Tuple Fields§
§0: ExprTrait Implementations§
Source§impl<Expr: Clone> Clone for ParenthesesAround<Expr>
impl<Expr: Clone> Clone for ParenthesesAround<Expr>
Source§fn clone(&self) -> ParenthesesAround<Expr>
fn clone(&self) -> ParenthesesAround<Expr>
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<Expr: Debug> Debug for ParenthesesAround<Expr>
impl<Expr: Debug> Debug for ParenthesesAround<Expr>
Auto Trait Implementations§
impl<Expr> Freeze for ParenthesesAround<Expr>where
Expr: Freeze,
impl<Expr> RefUnwindSafe for ParenthesesAround<Expr>where
Expr: RefUnwindSafe,
impl<Expr> Send for ParenthesesAround<Expr>where
Expr: Send,
impl<Expr> Sync for ParenthesesAround<Expr>where
Expr: Sync,
impl<Expr> Unpin for ParenthesesAround<Expr>where
Expr: Unpin,
impl<Expr> UnwindSafe for ParenthesesAround<Expr>where
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