Function bevy_macro_utils::ensure_no_collision
source ยท pub fn ensure_no_collision(value: Ident, haystack: TokenStream) -> Ident
Expand description
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.
Note that the returned identifier can still conflict in niche cases,
such as if an identifier in haystack
is hidden behind an un-expanded macro.