cairo_lang_primitive_token

Trait ToPrimitiveTokenStream

Source
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§

Source

type Iter: Iterator<Item = PrimitiveToken>

Iterator type for PrimitiveTokens.

Required Methods§

Source

fn to_primitive_token_stream(&self) -> Self::Iter

Method that turns given item to a PrimitiveTokenStream iterator.

Implementors§