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]
impl<P, W> Generics<P, W>
pub fn type_params(&'a self) -> TypeParams<'a, P>
[src]
pub fn type_params(&'a self) -> TypeParams<'a, P>
Trait Implementations
impl<P, W> Clone for Generics<P, W> where
P: Clone,
W: Clone,
[src]
impl<P, W> Clone for Generics<P, W> where
P: Clone,
W: Clone,
fn clone(&self) -> Generics<P, W>
[src]
fn clone(&self) -> Generics<P, W>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
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]
impl<P, W> Debug for Generics<P, W> where
P: Debug,
W: Debug,
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter. Read more
impl<P> FromGenerics for Generics<P, WhereClause> where
P: FromGenericParam,
[src]
impl<P> FromGenerics for Generics<P, WhereClause> where
P: FromGenericParam,
fn from_generics(generics: &Generics) -> Result<Generics<P, WhereClause>, Error>
[src]
fn from_generics(generics: &Generics) -> Result<Generics<P, WhereClause>, Error>
impl<P, W> Eq for Generics<P, W> where
P: Eq,
W: Eq,
[src]
impl<P, W> Eq for Generics<P, W> where
P: Eq,
W: Eq,
impl<P, W> PartialEq<Generics<P, W>> for Generics<P, W> where
P: PartialEq<P>,
W: PartialEq<W>,
[src]
impl<P, W> PartialEq<Generics<P, W>> for Generics<P, W> where
P: PartialEq<P>,
W: PartialEq<W>,