Searched refs:set_year_div_100 (Results 1 – 2 of 2) sorted by relevance
/external/rust/crates/chrono/src/format/ |
D | parsed.rs | 171 pub fn set_year_div_100(&mut self, value: i64) -> ParseResult<()> { in set_year_div_100() method 737 assert_eq!(p.set_year_div_100(20), Ok(())); // independent to `year` in test_parsed_set_fields() 738 assert_eq!(p.set_year_div_100(21), Err(IMPOSSIBLE)); in test_parsed_set_fields() 739 assert_eq!(p.set_year_div_100(19), Err(IMPOSSIBLE)); in test_parsed_set_fields() 746 assert_eq!(p.set_year_div_100(0), Ok(())); in test_parsed_set_fields() 750 assert_eq!(p.set_year_div_100(-1), Err(OUT_OF_RANGE)); in test_parsed_set_fields() 757 assert_eq!(p.set_year_div_100(0x1_0000_0008), Err(OUT_OF_RANGE)); in test_parsed_set_fields() 758 assert_eq!(p.set_year_div_100(8), Ok(())); in test_parsed_set_fields() 759 assert_eq!(p.set_year_div_100(0x1_0000_0008), Err(OUT_OF_RANGE)); in test_parsed_set_fields()
|
D | parse.rs | 301 YearDiv100 => (2, false, Parsed::set_year_div_100), in parse_internal()
|