pub struct WithoutBounds<'a>(/* private fields */);Expand description
Display wrapper that shows generic parameters without their bounds
This is used to format just the parameter names for display purposes, omitting any bounds information.
§Example
For a parameter like T: Clone, this will display just <T>.
Trait Implementations§
Source§impl ToTokens for WithoutBounds<'_>
impl ToTokens for WithoutBounds<'_>
Source§fn to_tokens(&self, tokens: &mut TokenStream)
fn to_tokens(&self, tokens: &mut TokenStream)
Source§fn to_token_stream(&self) -> TokenStream
fn to_token_stream(&self) -> TokenStream
Source§fn into_token_stream(self) -> TokenStreamwhere
Self: Sized,
fn into_token_stream(self) -> TokenStreamwhere
Self: Sized,
Auto Trait Implementations§
impl<'a> Freeze for WithoutBounds<'a>
impl<'a> RefUnwindSafe for WithoutBounds<'a>
impl<'a> !Send for WithoutBounds<'a>
impl<'a> !Sync for WithoutBounds<'a>
impl<'a> Unpin for WithoutBounds<'a>
impl<'a> UnwindSafe for WithoutBounds<'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