• Home
  • Raw
  • Download

Lines Matching refs:Err

36     Err(Err::Incomplete(Needed::new(1)))  in be_u8()
66 Err(Err::Incomplete(Needed::new(bound - input.input_len()))) in be_u16()
99 Err(Err::Incomplete(Needed::new(bound - input.input_len()))) in be_u24()
132 Err(Err::Incomplete(Needed::new(bound - input.input_len()))) in be_u32()
165 Err(Err::Incomplete(Needed::new(bound - input.input_len()))) in be_u64()
197 Err(Err::Incomplete(Needed::new(bound - input.input_len()))) in be_u128()
357 Err(Err::Incomplete(Needed::new(1))) in le_u8()
387 Err(Err::Incomplete(Needed::new(bound - input.input_len()))) in le_u16()
420 Err(Err::Incomplete(Needed::new(bound - input.input_len()))) in le_u24()
453 Err(Err::Incomplete(Needed::new(bound - input.input_len()))) in le_u32()
486 Err(Err::Incomplete(Needed::new(bound - input.input_len()))) in le_u64()
519 Err(Err::Incomplete(Needed::new(bound - input.input_len()))) in le_u128()
697 Err(Err::Incomplete(Needed::new(1))) in u8()
1140 Err(e) => Err(e), in be_f32()
1165 Err(e) => Err(e), in be_f64()
1190 Err(e) => Err(e), in le_f32()
1215 Err(e) => Err(e), in le_f64()
1394 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()
1396 crate::Err::Incomplete(needed) => crate::Err::Incomplete(needed), 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()
1478 None => return Err(Err::Incomplete(Needed::new(1))), in recognize_float_parts()
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()
1624 use crate::internal::{Err, Needed};
1640 assert_parse!(be_i8(&[][..]), Err(Err::Incomplete(Needed::new(1)))); in i8_tests()
1649 assert_parse!(be_i16(&[][..]), Err(Err::Incomplete(Needed::new(2)))); in i16_tests()
1650 assert_parse!(be_i16(&[0x00][..]), Err(Err::Incomplete(Needed::new(1)))); in i16_tests()
1661 assert_parse!(be_u24(&[][..]), Err(Err::Incomplete(Needed::new(3)))); in u24_tests()
1662 assert_parse!(be_u24(&[0x00][..]), Err(Err::Incomplete(Needed::new(2)))); in u24_tests()
1665 Err(Err::Incomplete(Needed::new(1))) in u24_tests()
1677 assert_parse!(be_i24(&[][..]), Err(Err::Incomplete(Needed::new(3)))); in i24_tests()
1678 assert_parse!(be_i24(&[0x00][..]), Err(Err::Incomplete(Needed::new(2)))); in i24_tests()
1681 Err(Err::Incomplete(Needed::new(1))) in i24_tests()
1697 assert_parse!(be_i32(&[][..]), Err(Err::Incomplete(Needed::new(4)))); in i32_tests()
1698 assert_parse!(be_i32(&[0x00][..]), Err(Err::Incomplete(Needed::new(3)))); in i32_tests()
1701 Err(Err::Incomplete(Needed::new(2))) in i32_tests()
1705 Err(Err::Incomplete(Needed::new(1))) in i32_tests()
1727 assert_parse!(be_i64(&[][..]), Err(Err::Incomplete(Needed::new(8)))); in i64_tests()
1728 assert_parse!(be_i64(&[0x00][..]), Err(Err::Incomplete(Needed::new(7)))); in i64_tests()
1731 Err(Err::Incomplete(Needed::new(6))) in i64_tests()
1735 Err(Err::Incomplete(Needed::new(5))) in i64_tests()
1739 Err(Err::Incomplete(Needed::new(4))) in i64_tests()
1743 Err(Err::Incomplete(Needed::new(3))) in i64_tests()
1747 Err(Err::Incomplete(Needed::new(2))) in i64_tests()
1751 Err(Err::Incomplete(Needed::new(1))) in i64_tests()
1799 assert_parse!(be_i128(&[][..]), Err(Err::Incomplete(Needed::new(16)))); in i128_tests()
1800 assert_parse!(be_i128(&[0x00][..]), Err(Err::Incomplete(Needed::new(15)))); in i128_tests()
1803 Err(Err::Incomplete(Needed::new(14))) in i128_tests()
1807 Err(Err::Incomplete(Needed::new(13))) in i128_tests()
1811 Err(Err::Incomplete(Needed::new(12))) in i128_tests()
1815 Err(Err::Incomplete(Needed::new(11))) in i128_tests()
1819 Err(Err::Incomplete(Needed::new(10))) in i128_tests()
1823 Err(Err::Incomplete(Needed::new(9))) in i128_tests()
1827 Err(Err::Incomplete(Needed::new(8))) in i128_tests()
1831 Err(Err::Incomplete(Needed::new(7))) in i128_tests()
1835 Err(Err::Incomplete(Needed::new(6))) in i128_tests()
1839 Err(Err::Incomplete(Needed::new(5))) in i128_tests()
1843 Err(Err::Incomplete(Needed::new(4))) in i128_tests()
1847 Err(Err::Incomplete(Needed::new(3))) in i128_tests()
1853 Err(Err::Incomplete(Needed::new(2))) in i128_tests()
1860 Err(Err::Incomplete(Needed::new(1))) in i128_tests()
2026 Err(Err::Error(error_position!(&b";"[..], ErrorKind::IsA))) in hex_u32_tests()
2039 assert_parse!(hex_u32(&b"12af"[..]), Err(Err::Incomplete(Needed::new(1)))); in hex_u32_tests()
2084 Err(Err::Incomplete(Needed::new(1))) in float_test()
2183 Err(e) => Err(e), in parse_f64()
2186 return Err(Err::Error(())); in parse_f64()
2190 None => Err(Err::Error(())), in parse_f64()