[−][src]Trait naut_io::format::EncodingFormatByExtension
Required methods
pub fn by_extension<P: AsRef<Path>>(
&self,
path: P
) -> Result<ImageOutputFormat, SicIoError>
[src]
&self,
path: P
) -> Result<ImageOutputFormat, SicIoError>
Determine the encoding format based on the extension of a file path.
Implementors
impl EncodingFormatByExtension for DetermineEncodingFormat
[src]
pub fn by_extension<P: AsRef<Path>>(
&self,
path: P
) -> Result<ImageOutputFormat, SicIoError>
[src]
&self,
path: P
) -> Result<ImageOutputFormat, SicIoError>
Determines the encoding format based on the extension of the given path. If the path has no extension, it will return an error. The extension if existing is matched against the identifiers, which currently are the extensions used.