Enum impl_tools_lib::generics::TypeParamBound  
source · 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 TokenStreamAuto Trait Implementations§
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