pub fn image_paths<P>(root: P) -> Vec<PathBuf>Expand description
Returns a vector of PathBuf representing paths to all images found in the given
directory and all of its subdirectories.
§Arguments
root- A value that can be converted into aPathBufand implements theClonetrait. This is the directory in which the search for images is performed.
§Returns
A vector of PathBuf representing paths to all images found in the given directory and
all of its subdirectories. The paths are sorted alphabetically.
§Notes
- Supported image formats are “JPEG”, “PNG”, “SVG”, and “GIF”