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

Methods

impl<P, W> Generics<P, W>
[src]

Trait Implementations

impl<P, W> Clone for Generics<P, W> where
    P: Clone,
    W: Clone
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<P, W> Debug for Generics<P, W> where
    P: Debug,
    W: Debug
[src]

Formats the value using the given formatter. Read more

impl<P> FromGenerics for Generics<P, WhereClause> where
    P: FromGenericParam
[src]

impl<P, W> Eq for Generics<P, W> where
    P: Eq,
    W: Eq
[src]

impl<P, W> PartialEq<Generics<P, W>> for Generics<P, W> where
    P: PartialEq<P>,
    W: PartialEq<W>, 
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

impl<P, W> Send for Generics<P, W> where
    P: Send,
    W: Send

impl<P, W> Sync for Generics<P, W> where
    P: Sync,
    W: Sync