rdf 0.1.4

rdf is a library for the Resource Description Framework (RDF) and SPARQL implemented in Rust.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use reader::lexer::token::Token;
use std::io::Read;
use Result;

/// Trait implemented by RDF lexer.
pub trait RdfLexer<R: Read> {
    /// Constructor.
    fn new(input: R) -> Self;

    /// Determines the next token from the input.
    fn get_next_token(&mut self) -> Result<Token>;

    // Determines the next token without consuming it.
    fn peek_next_token(&mut self) -> Result<Token>;
}