Lines Matching defs:LexError
191 pub struct LexError {
192 inner: imp::LexError,
236 /// NOTE: Some errors may cause panics instead of returning `LexError`. We
237 /// reserve the right to change these errors into `LexError`s later.
239 type Err = LexError;
241 fn from_str(src: &str) -> Result<TokenStream, LexError> {
242 let e = src.parse().map_err(|e| LexError {
314 impl LexError {
320 impl Debug for LexError {
326 impl Display for LexError {
332 impl Error for LexError {}
1258 type Err = LexError;
1260 fn from_str(repr: &str) -> Result<Self, LexError> {
1261 repr.parse().map(Literal::_new).map_err(|inner| LexError {