Add doc comments for from_path

This commit is contained in:
Andrew 2023-09-20 19:24:19 +12:00
parent dcc6b16b1a
commit 27262d4582

View file

@ -91,6 +91,9 @@ pub enum OutFile {
}
impl OutFile {
/// Construct a new `OutFile` with the given path.
///
/// This is a convenience method for `OutFile::Path { path: Some(path), preserve_attrs: false }`.
pub fn from_path(path: PathBuf) -> Self {
OutFile::Path {
path: Some(path),