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§
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§
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.