Struct devise_core::DeriveGenerator [−][src]
pub struct DeriveGenerator { pub input: ItemInput, pub item: TraitItem, pub support: Support, pub validator: Option<Box<dyn Validator>>, pub inner_mappers: Vec<Box<dyn Mapper>>, pub outer_mappers: Vec<Box<dyn Mapper>>, pub type_bound_mapper: Option<Box<dyn Mapper>>, // some fields omitted }
Fields
input: ItemInput
item: TraitItem
support: Support
validator: Option<Box<dyn Validator>>
inner_mappers: Vec<Box<dyn Mapper>>
outer_mappers: Vec<Box<dyn Mapper>>
type_bound_mapper: Option<Box<dyn Mapper>>
Implementations
pub fn build_for<I, T>(input: I, trait_impl: T) -> DeriveGenerator where
I: Into<TokenStream>,
T: ToTokens,
[src]Take the 0-indexed trait_gen
th generic in the generics in impl<..>
being built and substitute those tokens in place of the 0-indexed
impl_gen
th generic of the same kind in the input type.
Auto Trait Implementations
impl !RefUnwindSafe for DeriveGenerator
impl !Send for DeriveGenerator
impl !Sync for DeriveGenerator
impl Unpin for DeriveGenerator
impl !UnwindSafe for DeriveGenerator