#[doc(hidden)]pub trait RepToTokensExt {
// Provided methods
fn next(&self) -> Option<&Self> { ... }
fn quote_into_iter(&self) -> (&Self, DoesNotHaveIter) { ... }
}Expand description
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§
Sourcefn next(&self) -> Option<&Self>
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)
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.