Get a string representing a size by consuming all integers.
(input: &mut &str)
| 230 | |
| 231 | /// Get a string representing a size by consuming all integers. |
| 232 | fn size(input: &mut &str) -> ModalResult<u64> { |
| 233 | cut_err(take_while(0.., |c| c != ' ' && c != '\n').parse_to()) |
| 234 | .context(StrContext::Label("file size")) |
| 235 | .context(StrContext::Expected(StrContextValue::Description( |
| 236 | "a positive integer representing the file's size.", |
| 237 | ))) |
| 238 | .parse_next(input) |
| 239 | } |
| 240 | |
| 241 | /// Parse a single property. |
| 242 | fn property<'s>(input: &mut &'s str) -> ModalResult<PathProperty<'s>> { |
nothing calls this directly
no outgoing calls
no test coverage detected