#[derive(Debug, FromDeriveInput)] #[darling(attributes(from_variants), supports(enum_any))] pubstruct Container { // The second type parameter can be anything that implements FromField, since // FromDeriveInput will produce an error if given a struct.
data: ast::Data<Variant, ()>,
}
#[derive(Debug, FromDeriveInput)] #[darling(attributes(from_struct), supports(struct_named))] pubstruct StructContainer { // The second type parameter can be anything that implements FromVariant, since // FromDeriveInput will produce an error if given an enum.
data: ast::Data<(), syn::Field>,
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.