Struct darling_core::codegen::TraitImpl
[−]
[src]
pub struct TraitImpl<'a> { pub ident: &'a Ident, pub generics: &'a Generics, pub data: Data<Variant<'a>, Field<'a>>, pub default: Option<DefaultExpression<'a>>, pub map: Option<&'a Path>, pub bound: Option<&'a [WherePredicate]>, }
Fields
ident: &'a Ident
generics: &'a Generics
data: Data<Variant<'a>, Field<'a>>
default: Option<DefaultExpression<'a>>
map: Option<&'a Path>
bound: Option<&'a [WherePredicate]>
Methods
impl<'a> TraitImpl<'a>
[src]
pub fn declared_type_params(&self) -> IdentSet
[src]
Get all declared type parameters.
pub fn used_type_params(&self) -> IdentSet
[src]
Get the type parameters which are used by non-skipped fields.
pub fn skipped_type_params(&self) -> IdentSet
[src]
Get the type parameters which are used by skipped fields.
impl<'a> TraitImpl<'a>
[src]
pub fn declare_errors(&self) -> ErrorDeclaration
[src]
Gets the let
declaration for errors accumulated during parsing.
pub fn check_errors(&self) -> ErrorCheck
[src]
Gets the check which performs an early return if errors occurred during parsing.
pub fn require_fields(&self) -> Tokens
[src]
Trait Implementations
impl<'a> Debug for TraitImpl<'a>
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more