Trait RepToTokensExt

pub trait 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.

Provided Methods

fn next(&self) -> Option<&Self>

Pretend to be an iterator for the purposes of quote_into_iter. This allows repeated calls to quote_into_iter to continue correctly returning DoesNotHaveIter.

fn quote_into_iter(&self) -> (&Self, DoesNotHaveIter)

Implementors