Struct clippy_utils::sugg::ParenHelper
source · struct ParenHelper<T> {
paren: bool,
wrapped: T,
}
Expand description
Helper type to display either foo
or (foo)
.
Fields
paren: bool
true
if parentheses are needed.
wrapped: T
The main thing to display.
Implementations
sourceimpl<T> ParenHelper<T>
impl<T> ParenHelper<T>
Trait Implementations
Auto Trait Implementations
impl<T> RefUnwindSafe for ParenHelper<T>where
T: RefUnwindSafe,
impl<T> Send for ParenHelper<T>where
T: Send,
impl<T> Sync for ParenHelper<T>where
T: Sync,
impl<T> Unpin for ParenHelper<T>where
T: Unpin,
impl<T> UnwindSafe for ParenHelper<T>where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Layout
Note: Unable to compute type layout, possibly due to this type having generic parameters. Layout can only be computed for concrete, fully-instantiated types.