Function chalk_derive::derive_type_foldable

source ·
pub(crate) fn derive_type_foldable(s: Structure<'_>) -> TokenStream
Expand description

Derives TypeFoldable for structs and enums for which one of the following is true:

  • It has a #[has_interner(TheInterner)] attribute
  • There is a single parameter T: HasInterner (does not have to be named T)
  • There is a single parameter I: Interner (does not have to be named I)