Module utils

Module utils 

Source

MacrosΒ§

parse_quote_spanned πŸ”’

StructsΒ§

ReplaceReceiver πŸ”’

TraitsΒ§

ParseBufferExt πŸ”’
SliceExt πŸ”’

FunctionsΒ§

contains_fn πŸ”’
determine_lifetime_name πŸ”’
Determines the lifetime names. Ensure it doesn’t overlap with any existing lifetime names.
determine_visibility πŸ”’
Determines the visibility of the projected types and projection methods.
insert_lifetime πŸ”’
Inserts a lifetime at position 0 of generics.params.
insert_lifetime_and_bound πŸ”’
Like insert_lifetime, but also generates a bound of the form OriginalType<A, B>: 'lifetime. Used when generating the definition of a projection type
prepend_underscore_to_self πŸ”’
respan πŸ”’
respan_tokens πŸ”’

Type AliasesΒ§

Variants πŸ”’