Struct WithBounds
Source pub struct WithBounds<'a>();
Expand description
Display wrapper that shows generic parameters with their bounds
This is used to format generic parameters for display purposes,
including both the parameter names and their bounds (if any).
§Example
For a parameter like T: Clone, this will display <T: Clone>.
Write
self to the given
TokenStream.
Read more
Convert
self directly into a
TokenStream object.
Read more
Convert
self directly into a
TokenStream object.
Read more
Immutably borrows from an owned value.
Read more
Mutably borrows from an owned value.
Read more
Returns the argument unchanged.
Calls U::from(self).
That is, this conversion is whatever the implementation of
From<T> for U chooses to do.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.