parse_with

Function parse_with 

Source
pub fn parse_with<F, E: Debug>(
    data: &FsStr,
    parser: impl FnOnce(&str) -> Result<F, E>,
) -> Result<F, Errno>
Expand description

Parses data slice into another type.

This relies on str::parse so expects data to be utf8.