Skip to main content

from_path

Function from_path 

Source
pub fn from_path<P: AsRef<Path>>(path: P) -> MediaTypeGuess
Expand description

Guess the media type(s) of path by its extension.

See MediaTypeGuess::from_path.