Home
last modified time | relevance | path

Searched refs:from_error_kind (Results 1 – 19 of 19) sorted by relevance

/third_party/rust/crates/nom/src/bytes/
Dcomplete.rs46 Err(Err::Error(Error::from_error_kind(i, e))) in tag()
89 Err(Err::Error(Error::from_error_kind(i, e))) in tag_no_case()
268 Err(Err::Error(Error::from_error_kind( in take_while_m_n()
278 Err(Err::Error(Error::from_error_kind( in take_while_m_n()
287 Err(Err::Error(Error::from_error_kind(input, e))) in take_while_m_n()
295 Err(_needed) => Err(Err::Error(Error::from_error_kind( in take_while_m_n()
305 Err(Err::Error(Error::from_error_kind(input, e))) in take_while_m_n()
412 Err(_needed) => Err(Err::Error(Error::from_error_kind(i, ErrorKind::Eof))), in take()
445 None => Err(Err::Error(Error::from_error_kind(i, ErrorKind::TakeUntil))), in take_until()
481 None => Err(Err::Error(Error::from_error_kind(i, ErrorKind::TakeUntil))), in take_until1()
[all …]
Dstreaming.rs47 Err(Err::Error(Error::from_error_kind(i, e))) in tag()
89 Err(Err::Error(Error::from_error_kind(i, e))) in tag_no_case()
279 Err(Err::Error(Error::from_error_kind( in take_while_m_n()
289 Err(Err::Error(Error::from_error_kind( in take_while_m_n()
298 Err(Err::Error(Error::from_error_kind(input, e))) in take_while_m_n()
306 Err(_needed) => Err(Err::Error(Error::from_error_kind( in take_while_m_n()
498 Some(0) => Err(Err::Error(Error::from_error_kind(i, ErrorKind::TakeUntil))), in take_until1()
/third_party/rust/crates/nom/src/multi/
Dmod.rs69 return Err(Err::Error(E::from_error_kind(i, ErrorKind::Many0))); in many0()
130 return Err(Err::Error(E::from_error_kind(i, ErrorKind::Many1))); in many1()
188 return Err(Err::Error(E::from_error_kind(i1, ErrorKind::ManyTill))); in many_till()
258 return Err(Err::Error(E::from_error_kind(i1, ErrorKind::SeparatedList))); in separated_list0()
332 return Err(Err::Error(E::from_error_kind(i1, ErrorKind::SeparatedList))); in separated_list1()
392 return Err(Err::Failure(E::from_error_kind(input, ErrorKind::ManyMN))); in many_m_n()
404 return Err(Err::Error(E::from_error_kind(input, ErrorKind::ManyMN))); in many_m_n()
469 return Err(Err::Error(E::from_error_kind(input, ErrorKind::Many0Count))); in many0_count()
519 Err(Err::Error(_)) => Err(Err::Error(E::from_error_kind(i, ErrorKind::Many1Count))), in many1_count()
534 return Err(Err::Error(E::from_error_kind(i, ErrorKind::Many1Count))); in many1_count()
[all …]
Dtests.rs314 fn from_error_kind(_: I, _: ErrorKind) -> NilError { in from_error_kind() method
/third_party/rust/crates/nom/src/character/
Dcomplete.rs73 _ => Err(Err::Error(Error::from_error_kind(i, ErrorKind::Satisfy))), in satisfy()
97 _ => Err(Err::Error(Error::from_error_kind(i, ErrorKind::OneOf))), in one_of()
121 _ => Err(Err::Error(Error::from_error_kind(i, ErrorKind::NoneOf))), in none_of()
152 Err(Err::Error(E::from_error_kind(input, e))) in crlf()
201 Err(Err::Error(E::from_error_kind(input, e))) in not_line_ending()
235 CompareResult::Incomplete => Err(Err::Error(E::from_error_kind(input, ErrorKind::CrLf))), in line_ending()
240 _ => Err(Err::Error(E::from_error_kind(input, ErrorKind::CrLf))), in line_ending()
316 None => Err(Err::Error(E::from_error_kind(input, ErrorKind::Eof))), in anychar()
742 return Err(Err::Error(E::from_error_kind(input, ErrorKind::Digit)));
751 … return Err(Err::Error(E::from_error_kind(input, ErrorKind::Digit)));
[all …]
Dstreaming.rs73 Some((_, false)) => Err(Err::Error(Error::from_error_kind(i, ErrorKind::Satisfy))), in satisfy()
98 Some((_, false)) => Err(Err::Error(Error::from_error_kind(i, ErrorKind::OneOf))), in one_of()
123 Some((_, false)) => Err(Err::Error(Error::from_error_kind(i, ErrorKind::NoneOf))), in none_of()
152 Err(Err::Error(E::from_error_kind(input, e))) in crlf()
195 Err(Err::Error(E::from_error_kind(input, e))) in not_line_ending()
232 CompareResult::Error => Err(Err::Error(E::from_error_kind(input, ErrorKind::CrLf))), in line_ending()
657 … return Err(Err::Error(E::from_error_kind(input, ErrorKind::Digit)));
663 … None => return Err(Err::Error(E::from_error_kind(input, ErrorKind::Digit))),
673 … return Err(Err::Error(E::from_error_kind(input, ErrorKind::Digit)));
679 … None => return Err(Err::Error(E::from_error_kind(input, ErrorKind::Digit))),
[all …]
/third_party/rust/crates/nom/src/
Derror.rs18 fn from_error_kind(input: I, kind: ErrorKind) -> Self; in from_error_kind() method
27 Self::from_error_kind(input, ErrorKind::Char) in from_char()
73 fn from_error_kind(input: I, kind: ErrorKind) -> Self { in from_error_kind() method
104 fn from_error_kind(input: I, kind: ErrorKind) -> Self { in from_error_kind() method
122 fn from_error_kind(_: I, _: ErrorKind) -> Self {} in from_error_kind() method
135 E::from_error_kind(input, kind) in make_error()
173 fn from_error_kind(input: I, kind: ErrorKind) -> Self { in from_error_kind() method
205 Self::from_error_kind(input, kind) in from_external_error()
Dtraits.rs522 Some(0) => Err(Err::Error(E::from_error_kind(self.clone(), e))), in split_at_position1()
552 Err(Err::Error(E::from_error_kind(self.clone(), e))) in split_at_position1_complete()
584 Some(0) => Err(Err::Error(E::from_error_kind(self, e))), in split_at_position1()
612 Some(0) => Err(Err::Error(E::from_error_kind(self, e))), in split_at_position1_complete()
616 Err(Err::Error(E::from_error_kind(self, e))) in split_at_position1_complete()
648 Some(0) => Err(Err::Error(E::from_error_kind(self, e))), in split_at_position1()
684 Some(0) => Err(Err::Error(E::from_error_kind(self, e))), in split_at_position1_complete()
689 Err(Err::Error(E::from_error_kind(self, e))) in split_at_position1_complete()
/third_party/rust/crates/nom/src/combinator/
Dmod.rs155 None => Err(Err::Error(E::from_error_kind(i, ErrorKind::MapOpt))), in map_opt()
338 Err(Err::Error(E::from_error_kind(input, ErrorKind::Eof))) in eof()
363 Err(Err::Incomplete(_)) => Err(Err::Error(E::from_error_kind(i, ErrorKind::Complete))), in complete()
394 Err(Err::Error(E::from_error_kind(input, ErrorKind::Eof))) in all_consuming()
434 Err(Err::Error(E::from_error_kind(i, ErrorKind::Verify))) in verify()
484 Ok(_) => Err(Err::Error(E::from_error_kind(i, ErrorKind::Not))), in not()
808 Err(Err::Error(E::from_error_kind(i, ErrorKind::Fail))) in fail()
Dtests.rs100 fn from_error_kind(_: I, _: ErrorKind) -> Self { in from_error_kind() method
/third_party/rust/crates/nom/src/number/
Dcomplete.rs1425 crate::Err::Error(_) => crate::Err::Error(E::from_error_kind(i, ErrorKind::Float)), in recognize_float_or_exceptions()
1426 crate::Err::Failure(_) => crate::Err::Failure(E::from_error_kind(i, ErrorKind::Float)), in recognize_float_or_exceptions()
1432 .map_err(|_| crate::Err::Error(E::from_error_kind(i, ErrorKind::Float))) in recognize_float_or_exceptions()
1436 .map_err(|_| crate::Err::Error(E::from_error_kind(i, ErrorKind::Float))) in recognize_float_or_exceptions()
1440 .map_err(|_| crate::Err::Error(E::from_error_kind(i, ErrorKind::Float))) in recognize_float_or_exceptions()
1520 return Err(Err::Error(E::from_error_kind(input, ErrorKind::Float))); in recognize_float_parts()
1587 None => Err(crate::Err::Error(E::from_error_kind( in float()
1640 None => Err(crate::Err::Error(E::from_error_kind( in double()
Dstreaming.rs1394 crate::Err::Error(_) => crate::Err::Error(E::from_error_kind(i, ErrorKind::Float)), in recognize_float_or_exceptions()
1395 crate::Err::Failure(_) => crate::Err::Failure(E::from_error_kind(i, ErrorKind::Float)), in recognize_float_or_exceptions()
1401 .map_err(|_| crate::Err::Error(E::from_error_kind(i, ErrorKind::Float))) in recognize_float_or_exceptions()
1405 .map_err(|_| crate::Err::Error(E::from_error_kind(i, ErrorKind::Float))) in recognize_float_or_exceptions()
1409 .map_err(|_| crate::Err::Error(E::from_error_kind(i, ErrorKind::Float))) in recognize_float_or_exceptions()
1493 return Err(Err::Error(E::from_error_kind(input, ErrorKind::Float))); in recognize_float_parts()
1559 None => Err(crate::Err::Error(E::from_error_kind( in float()
1613 None => Err(crate::Err::Error(E::from_error_kind( in double()
/third_party/rust/crates/nom/examples/
Dcustom_error.rs15 fn from_error_kind(input: I, kind: ErrorKind) -> Self { in from_error_kind() method
/third_party/rust/crates/nom/tests/
Dcustom_errors.rs22 fn from_error_kind(_: &'a str, kind: ErrorKind) -> Self { in from_error_kind() method
/third_party/rust/crates/nom/doc/
Derror_management.md252 fn from_error_kind(input: I, kind: ErrorKind) -> Self;
261 Self::from_error_kind(input, ErrorKind::Char)
274 - `from_error_kind`: From the input position and the `ErrorKind` enum that indicates in which parse…
317 fn from_error_kind(input: &str, kind: ErrorKind) -> Self {
/third_party/rust/crates/rust-cexpr/src/
Dlib.rs99 fn from_error_kind(input: I, kind: nom::ErrorKind) -> Self { in from_error_kind() method
/third_party/rust/crates/nom/src/bits/
Dmod.rs105 None => Err::Failure(E2::from_error_kind(i, ErrorKind::TooLarge)), in bytes()
Dcomplete.rs48 Err(Err::Error(E::from_error_kind( in take()
/third_party/rust/crates/nom/src/branch/
Dtests.rs34 fn from_error_kind(input: I, kind: ErrorKind) -> Self { in from_error_kind() method