-
-
Notifications
You must be signed in to change notification settings - Fork 173
Open
Description
Currently, imwrite
, imread
, etc. take &str
as the path argument. This is kind of annoying if you're dealing with std::path::Path
s, which have to be turned into &str
s. Is there a reason we can't accept AsRef<Path>
there instead? This would allow callers to pass &str
/String
OR Path
/PathBuf
. Accepting this can even be done with a macro, if code aesthetics is a concern. It's also possible to do this without generics by accepting impl AsRef<Path>
.
Metadata
Metadata
Assignees
Labels
No labels