1
2
3
4
5
6
7
8
9
//! Converter traits for things that can be converted into tokens.

use super::tokens::Tokens;

/// Helper trait to convert something into tokens.
pub trait IntoTokens<'el, C> {
    /// Convert the type into tokens.
    fn into_tokens(self) -> Tokens<'el, C>;
}