Skip to main content

parse_str_with_name

Function parse_str_with_name 

Source
pub fn parse_str_with_name(
    text: &str,
    format: &str,
    name_hint: Option<&str>,
) -> Result<Parsed, Error>
Expand description

parse_str with a name hint for formats that carry no name of their own (the role the file stem plays in parse_file). Lets a caller that already read a file’s text keep the stem-derived case name without going back through the filesystem.

§Errors

As parse_str.