Struct darling::ast::Generics
[−]
[src]
pub struct Generics<P, W = WhereClause> { pub params: Vec<P>, pub where_clause: Option<W>, }
A mirror of the syn::Generics
type which can contain arbitrary representations
of params and where clauses.
Fields
params: Vec<P>
where_clause: Option<W>
Methods
impl<P, W> Generics<P, W>
[src]
pub fn type_params(&'a self) -> TypeParams<'a, P>
[src]
Trait Implementations
impl<P> FromGenerics for Generics<P, WhereClause> where
P: FromGenericParam,
[src]
P: FromGenericParam,
fn from_generics(generics: &Generics) -> Result<Generics<P, WhereClause>, Error>
[src]
impl<P, W> Eq for Generics<P, W> where
P: Eq,
W: Eq,
[src]
P: Eq,
W: Eq,
impl<P, W> PartialEq<Generics<P, W>> for Generics<P, W> where
P: PartialEq<P>,
W: PartialEq<W>,
[src]
P: PartialEq<P>,
W: PartialEq<W>,
fn eq(&self, __arg_0: &Generics<P, W>) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Generics<P, W>) -> bool
[src]
This method tests for !=
.
impl<P, W> Clone for Generics<P, W> where
P: Clone,
W: Clone,
[src]
P: Clone,
W: Clone,
fn clone(&self) -> Generics<P, W>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<P, W> Debug for Generics<P, W> where
P: Debug,
W: Debug,
[src]
P: Debug,
W: Debug,