pub trait ToPrimitiveTokenStream {
type Iter: Iterator<Item = PrimitiveToken>;
// Required method
fn to_primitive_token_stream(&self) -> Self::Iter;
}
Expand description
Trait that defines an object that can be turned into a PrimitiveTokenStream iterator.
Required Associated Types§
Sourcetype Iter: Iterator<Item = PrimitiveToken>
type Iter: Iterator<Item = PrimitiveToken>
Iterator type for PrimitiveTokens.
Required Methods§
Sourcefn to_primitive_token_stream(&self) -> Self::Iter
fn to_primitive_token_stream(&self) -> Self::Iter
Method that turns given item to a PrimitiveTokenStream iterator.