Crate bevy_macro_utils
source ·Expand description
A collection of helper types and functions for working on macros within the Bevy ecosystem.
Modules§
- This module contains unit structs that should be used inside
quote!andspanned_quote!using the variable interpolation syntax in place of their equivalent structs and traits present instd.
Structs§
- The path to the
Cargo.tomlfile for the Bevy project. - A single named value, representable as a string.
Functions§
- Derive a label trait
- Finds an identifier that will not conflict with the specified set of tokens. If the identifier is present in
haystack, extra characters will be added to it until it no longer conflicts with anything. - Get a literal string from the provided expression.
- Get the fields of a data structure if that structure is a struct with named fields; otherwise, return a compile error that points to the site of the macro invocation.