/// Use a string as source for the lexing process.
Use a string as source for the lexing process.
Use a string as source for the lexing process .
fn from_str(data: &str) -> Result<Self, Self::Err> {
        Ok(Lexer {
            src: data.to_string(),
        })
    }
fn from_str ( data : & str ) -> Result < Self , Self :: Err > { Ok ( Lexer { src : data . to_string ( ) , } ) }
Use a string as source for the lexing process.
Use a string as source for the lexing process .
data
&str