Struct impl_tools_lib::generics::Generics
source · [−]pub struct Generics {
pub lt_token: Option<Lt>,
pub params: Punctuated<GenericParam, Comma>,
pub gt_token: Option<Gt>,
pub where_clause: Option<WhereClause>,
}
Expand description
Lifetimes and type parameters attached an item
This is a custom variant of syn::Generics
which supports trait
as a parameter bound.
Fields
lt_token: Option<Lt>
<
params: Punctuated<GenericParam, Comma>
Parameters
gt_token: Option<Gt>
>
where_clause: Option<WhereClause>
where
bounds
Trait Implementations
sourceimpl ToTokensSubst for Generics
impl ToTokensSubst for Generics
sourcefn 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 RefUnwindSafe for Generics
impl !Send for Generics
impl !Sync for Generics
impl Unpin for Generics
impl UnwindSafe for Generics
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more