Skip to main content

Module ext

Module ext 

Source
Expand description

Extension traits used by the implementation of quote!. These are defined in separate traits, rather than as a single trait due to ambiguity issues.

These traits expose a quote_into_iter method which should allow calling whichever impl happens to be applicable. Calling that method repeatedly on the returned value should be idempotent.

Traitsยง

RepAsIteratorExt ๐Ÿ‘ป
Extension trait providing the quote_into_iter method for types that can be referenced as an iterator.
RepIteratorExt ๐Ÿ‘ป
Extension trait providing the quote_into_iter method on iterators.
RepToTokensExt ๐Ÿ‘ป
Extension trait providing the quote_into_iter method for non-iterable types. These types interpolate the same value in each iteration of the repetition.