Home
last modified time | relevance | path

Searched refs:ContextError (Results 1 – 5 of 5) sorted by relevance

/third_party/rust/crates/nom/examples/
Djson.rs8 error::{context, convert_error, ContextError, ErrorKind, ParseError, VerboseError},
94 fn string<'a, E: ParseError<&'a str> + ContextError<&'a str>>( in string()
107 fn array<'a, E: ParseError<&'a str> + ContextError<&'a str>>( in array()
122 fn key_value<'a, E: ParseError<&'a str> + ContextError<&'a str>>( in key_value()
132 fn hash<'a, E: ParseError<&'a str> + ContextError<&'a str>>( in hash()
156 fn json_value<'a, E: ParseError<&'a str> + ContextError<&'a str>>( in json_value()
173 fn root<'a, E: ParseError<&'a str> + ContextError<&'a str>>( in root()
/third_party/rust/crates/nom/src/
Derror.rs39 pub trait ContextError<I>: Sized { interface
82 impl<I> ContextError<I> for Error<I> {}
113 impl<I> ContextError<I> for (I, ErrorKind) {} impl
127 impl<I> ContextError<I> for () {} implementation
193 impl<I> ContextError<I> for VerboseError<I> {
233 pub fn context<I: Clone, E: ContextError<I>, F, O>( in context()
/third_party/rust/crates/nom/tests/
Dissues.rs160 use nom::error::{ContextError, ParseError}; in issue_942()
161 pub fn parser<'a, E: ParseError<&'a str> + ContextError<&'a str>>( in issue_942()
/third_party/rust/crates/nom/doc/
Derror_management.md279 We can also implement the `ContextError` trait to support the `context()`
283 pub trait ContextError<I>: Sized {
312 Now let's implement `ParseError` and `ContextError` on it:
343 impl ContextError<&str> for DebugError {
/third_party/rust/crates/nom/
DCHANGELOG.md318 `ContextError` for the `context` combinator, and `FromExternalError` for `map_res`.
336 …combinator is not linked to `ParseError` anymore, instead it come with its own `ContextError` trait