Lines Matching refs:LexError
38 pub(crate) enum LexError { enum
39 Compiler(proc_macro::LexError),
40 Fallback(fallback::LexError),
96 pub(crate) fn from_str_checked(src: &str) -> Result<Self, LexError> { in from_str_checked() argument
266 impl LexError { implementation
269 LexError::Compiler(_) | LexError::CompilerPanic => Span::call_site(), in span()
270 LexError::Fallback(e) => Span::Fallback(e.span()), in span()
275 impl From<proc_macro::LexError> for LexError { implementation
276 fn from(e: proc_macro::LexError) -> Self { in from()
277 LexError::Compiler(e) in from()
281 impl From<fallback::LexError> for LexError { implementation
282 fn from(e: fallback::LexError) -> Self { in from()
283 LexError::Fallback(e) in from()
287 impl Debug for LexError { implementation
290 LexError::Compiler(e) => Debug::fmt(e, f), in fmt()
291 LexError::Fallback(e) => Debug::fmt(e, f), in fmt()
292 LexError::CompilerPanic => { in fmt()
293 let fallback = fallback::LexError::call_site(); in fmt()
300 impl Display for LexError { implementation
303 LexError::Compiler(e) => Display::fmt(e, f), in fmt()
304 LexError::Fallback(e) => Display::fmt(e, f), in fmt()
305 LexError::CompilerPanic => { in fmt()
306 let fallback = fallback::LexError::call_site(); in fmt()
790 pub(crate) fn from_str_checked(repr: &str) -> Result<Self, LexError> { in from_str_checked() argument