Home
last modified time | relevance | path

Searched refs:VerboseError (Results 1 – 8 of 8) sorted by relevance

/third_party/rust/crates/nom/examples/
Ds_expression.rs12 error::{context, VerboseError},
68 fn parse_builtin_op<'a>(i: &'a str) -> IResult<&'a str, BuiltIn, VerboseError<&'a str>> { in parse_builtin_op()
87 fn parse_builtin<'a>(i: &'a str) -> IResult<&'a str, BuiltIn, VerboseError<&'a str>> { in parse_builtin()
99 fn parse_bool<'a>(i: &'a str) -> IResult<&'a str, Atom, VerboseError<&'a str>> { in parse_bool()
112 fn parse_keyword<'a>(i: &'a str) -> IResult<&'a str, Atom, VerboseError<&'a str>> { in parse_keyword()
121 fn parse_num<'a>(i: &'a str) -> IResult<&'a str, Atom, VerboseError<&'a str>> { in parse_num()
134 fn parse_atom<'a>(i: &'a str) -> IResult<&'a str, Atom, VerboseError<&'a str>> { in parse_atom()
144 fn parse_constant<'a>(i: &'a str) -> IResult<&'a str, Expr, VerboseError<&'a str>> { in parse_constant()
155 fn s_exp<'a, O1, F>(inner: F) -> impl FnMut(&'a str) -> IResult<&'a str, O1, VerboseError<&'a str>> in s_exp()
157 F: Parser<&'a str, O1, VerboseError<&'a str>>, in s_exp()
[all …]
Djson.rs8 error::{context, convert_error, ContextError, ErrorKind, ParseError, VerboseError},
300 println!("parsed verbose: {:#?}", root::<VerboseError<&str>>(data)); in main()
302 match root::<VerboseError<&str>>(data) { in main()
/third_party/rust/crates/nom/src/
Derror.rs151 pub struct VerboseError<I> { struct
172 impl<I> ParseError<I> for VerboseError<I> { implementation
174 VerboseError { in from_error_kind()
185 VerboseError { in from_char()
193 impl<I> ContextError<I> for VerboseError<I> { implementation
202 impl<I, E> FromExternalError<I, E> for VerboseError<I> { implementation
210 impl<I: fmt::Display> fmt::Display for VerboseError<I> { implementation
226 impl<I: fmt::Debug + fmt::Display> std::error::Error for VerboseError<I> {} implementation
253 e: VerboseError<I>, in convert_error()
617 let _result: IResult<_, _, VerboseError<&str>> = char('x')(input); in convert_error_panic()
Dtraits.rs1315 impl<I> ErrorConvert<error::VerboseError<I>> for error::VerboseError<(I, usize)> { implementation
1316 fn convert(self) -> error::VerboseError<I> { in convert()
1317 error::VerboseError { in convert()
1325 impl<I> ErrorConvert<error::VerboseError<(I, usize)>> for error::VerboseError<I> { implementation
1326 fn convert(self) -> error::VerboseError<(I, usize)> { in convert()
1327 error::VerboseError { in convert()
/third_party/rust/crates/nom/doc/
Derror_management.md118 ### getting more information: nom::error::VerboseError
120 The `VerboseError<I>` type accumulates more information about the chain of
125 pub struct VerboseError<I> {
126 /// List of errors accumulated by `VerboseError`, containing the affected
132 /// Error context for `VerboseError`
162 // VerboseError {
186 println!("parsed verbose: {:#?}", json::<VerboseError<&str>>(data));
194 let e = json::<VerboseError<&str>>(data).finish().err().unwrap();
195 // here we use the `convert_error` function, to transform a `VerboseError<&str>`
199 // verbose errors - `json::<VerboseError<&str>>(data)`:
[all …]
Dupgrading_to_nom_5.md49 `verbose-errors` feature with the [`VerboseError` type](https://docs.rs/nom/latest/nom/error/struct…
/third_party/rust/crates/nom/tests/
Dissues.rs181 use nom::error::{convert_error, VerboseError}; in issue_1027_convert_error_panic_nonempty()
186 let result: IResult<_, _, VerboseError<&str>> = pair(char('a'), char('b'))(input); in issue_1027_convert_error_panic_nonempty()
/third_party/rust/crates/nom/
DCHANGELOG.md223 - implement `std::error::Error` on `VerboseError`
245 - `ErrorConvert` implementation for `VerboseError`
319 While the `VerboseError` type and its `convert_error` function saw some changes,
456 bound. To get equivalent behaviour to `verbose-errors`, check out `nom::error::VerboseError`
472 - the `VerboseError` type accumulates position info and error codes, and can generate a trace with …