Searched refs:LexError (Results 1 – 5 of 5) sorted by relevance
| /linux/rust/proc-macro2/ |
| H A D | wrapper.rs | 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() [all …]
|
| H A D | lib.rs | 200 pub struct LexError { struct 201 inner: imp::LexError, argument 248 type Err = LexError; 250 fn from_str(src: &str) -> Result<TokenStream, LexError> { in from_str() argument 253 Err(lex) => Err(LexError { in from_str() 325 impl LexError { implementation 331 impl Debug for LexError { implementation 337 impl Display for LexError { implementation 343 impl Error for LexError {} implementation 1278 type Err = LexError; [all …]
|
| H A D | fallback.rs | 53 pub(crate) struct LexError { struct 57 impl LexError { impl 63 LexError { in call_site() 76 pub(crate) fn from_str_checked(src: &str) -> Result<Self, LexError> { in from_str_checked() argument 212 impl Display for LexError { implementation 951 pub(crate) fn from_str_checked(repr: &str) -> Result<Self, LexError> { in from_str_checked() argument 960 return Err(LexError::call_site()); in from_str_checked() 978 Err(LexError::call_site()) in from_str_checked() 1218 pub(crate) trait FromStr2: FromStr<Err = proc_macro::LexError> { 1223 fn from_str_checked(src: &str) -> Result<Self, imp::LexError> { in from_str_checked() argument [all …]
|
| H A D | parse.rs | 4 self, is_ident_continue, is_ident_start, Group, Ident, LexError, Literal, Span, TokenStream, 170 pub(crate) fn token_stream(mut input: Cursor) -> Result<TokenStream, LexError> { in token_stream() argument 191 return Err(LexError { in token_stream() 196 Some(_frame) => return Err(LexError { span: Span {} }), in token_stream() 255 fn lex_error(cursor: Cursor) -> LexError { in lex_error() argument 258 LexError { in lex_error()
|
| /linux/rust/syn/ |
| H A D | error.rs | 7 Delimiter, Group, Ident, LexError, Literal, Punct, Spacing, Span, TokenStream, TokenTree, 407 impl From<LexError> for Error { 408 fn from(err: LexError) -> Self { in from()
|