Trait stitchy_core::FileProperties

source ·
pub trait FileProperties {
    // Required methods
    fn infer_format(&self) -> Option<ImageFormat>;
    fn into_image_contents(
        self,
        print_info: bool
    ) -> Result<DynamicImage, String>;
    fn file_size(&self) -> u64;
    fn modify_time(&self) -> SystemTime;
    fn full_path(&self) -> Option<&String>;
}
Expand description

Types used for loading files and passing them into the image stitching process Functions to get useful properties of files. Implementers of this trait are representations of files. The files are not necessarily required to be open, or to have been opened or read.

Required Methods§

Implementors§