Struct stitchy_core::ImageFilesBuilder
source · pub struct ImageFilesBuilder<P: FileProperties, L: FileLocation<P>> { /* private fields */ }
Expand description
Types used for loading files and passing them into the image stitching process
Builder for the ImageFiles
struct.
Assemble a list of image files, chosen individually or a directory at a time.
See documentation for ImageFiles
for more information.
Implementations§
source§impl<P, L> ImageFilesBuilder<P, L>
impl<P, L> ImageFilesBuilder<P, L>
sourcepub fn build(self) -> Result<ImageFiles<P>, String>
pub fn build(self) -> Result<ImageFiles<P>, String>
Return an ImageFiles containing the metadata of the set of source files.
If there was an error reading the metadata of any file, it will be returned as a String.
source§impl ImageFilesBuilder<FilePathWithMetadata, FilePath>
impl ImageFilesBuilder<FilePathWithMetadata, FilePath>
sourcepub fn add_current_directory(
self,
additional_components: Vec<&str>
) -> Result<Self, String>
pub fn add_current_directory( self, additional_components: Vec<&str> ) -> Result<Self, String>
Add to the working set all files within the current directory that have known image file extensions.
sourcepub fn add_directory(self, source_path: PathBuf) -> Result<Self, String>
pub fn add_directory(self, source_path: PathBuf) -> Result<Self, String>
Add to the working set all files within the given directory that have known image file extensions. The supplied PathBuf must be the absolute path to a directory.
Trait Implementations§
source§impl<P: FileProperties, L: FileLocation<P>> Default for ImageFilesBuilder<P, L>
impl<P: FileProperties, L: FileLocation<P>> Default for ImageFilesBuilder<P, L>
Auto Trait Implementations§
impl<P, L> RefUnwindSafe for ImageFilesBuilder<P, L>where
L: RefUnwindSafe,
P: RefUnwindSafe,
impl<P, L> Send for ImageFilesBuilder<P, L>
impl<P, L> Sync for ImageFilesBuilder<P, L>
impl<P, L> Unpin for ImageFilesBuilder<P, L>
impl<P, L> UnwindSafe for ImageFilesBuilder<P, L>where
L: UnwindSafe,
P: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more