Add doc comments for from_path
This commit is contained in:
parent
dcc6b16b1a
commit
27262d4582
1 changed files with 3 additions and 0 deletions
|
|
@ -91,6 +91,9 @@ pub enum OutFile {
|
||||||
}
|
}
|
||||||
|
|
||||||
impl 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 {
|
pub fn from_path(path: PathBuf) -> Self {
|
||||||
OutFile::Path {
|
OutFile::Path {
|
||||||
path: Some(path),
|
path: Some(path),
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue