pub fn new(value: T, span: Span<'a>) -> Self {
        Token {
            value: value,
            span : span
        }
    }
/// Associate a span to a datum, i.e. to the token value.
///
/// # Examples
///
/// ```
/// # extern crate tagua_parser;
/// use tagua_parser::tokens::{
///     Span,
///     Token
/// };
///
/// # fn main() {
/// let token = Token::new(42, Span::new(b"42"));
/// # }
/// ```
Associate a span to a datum, i.e. to the token value.
Associate a span to a datum i . e . to the token value .
pub fn new(value: T, span: Span<'a>) -> Self {
        Token {
            value: value,
            span : span
        }
    }
pub fn new ( value : T , span : Span < ' a > ) -> Self { Token { value : value , span : span } }
Associate a span to a datum, i.e.
Associate a span to a datum i . e .
value
T
span
Span<'a>
examples
None
extern crate tagua_parser;
use tagua_parser::tokens::{
Span,
Token
}.
use tagua_parser :: tokens :: { Span Token } .
fn main() {
None
}
None