Searched refs:advance_by (Results 1 – 3 of 3) sorted by relevance
84 assert_eq!(shorts.advance_by(0), Ok(())); in advance_by_nothing()98 assert_eq!(shorts.advance_by(2), Ok(())); in advance_by_something()112 assert_eq!(shorts.advance_by(2000), Err(5)); in advance_by_out_of_bounds()136 shorts.advance_by(1).unwrap(); in is_partial_not_empty()148 shorts.advance_by(20000).unwrap_err(); in is_exhausted_empty()
419 pub fn advance_by(&mut self, n: usize) -> Result<(), usize> { in advance_by() method
894 let res = short_arg.advance_by(skip); in parse_short_arg()