bevy_macro_utils

Function derive_label

Source
pub fn derive_label(
    input: DeriveInput,
    trait_name: &str,
    trait_path: &Path,
    dyn_eq_path: &Path,
) -> TokenStream
Expand description

Derive a label trait

ยงArgs

  • input: The syn::DeriveInput for struct that is deriving the label trait
  • trait_name: Name of the label trait
  • trait_path: The path to the label trait
  • dyn_eq_path: The path to the DynEq trait