pub enum TypeParamBound {
TraitSubst(Trait),
Other(TypeParamBound),
}
Expand description
A trait or lifetime used as a bound on a type parameter.
This is a superset of syn::TypeParamBound
.
Variants§
TraitSubst(Trait)
trait
used as a bound (substituted for the trait name by ToTokensSubst
)
Other(TypeParamBound)
Everything else
Trait Implementations§
Source§impl Debug for TypeParamBound
impl Debug for TypeParamBound
Source§impl Parse for TypeParamBound
impl Parse for TypeParamBound
fn parse(input: ParseStream<'_>) -> Result<Self>
Source§impl ToTokensSubst for TypeParamBound
impl ToTokensSubst for TypeParamBound
Source§fn to_tokens_subst(&self, tokens: &mut TokenStream, subst: &TokenStream)
fn to_tokens_subst(&self, tokens: &mut TokenStream, subst: &TokenStream)
Write
self
to the given TokenStream
Auto Trait Implementations§
impl Freeze for TypeParamBound
impl RefUnwindSafe for TypeParamBound
impl !Send for TypeParamBound
impl !Sync for TypeParamBound
impl Unpin for TypeParamBound
impl UnwindSafe for TypeParamBound
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