pub struct File {
pub pathbuf: PathBuf,
}
Expand description
The struct used in all the cross-function path functionality
Return an instance of File with the same path as ours
Return a new instance of File
, with path
as the path.
Return a new instance of File
, with path
as the path.
Return true
if our path exists
Return a String
representing the extension of our path
Return the file name of our path
Return a String
representing the file stem of our path
Return the joining of our path and path
as a File
.
Return the joining of our path and path
.
Return a new instance of File
from from
Return an instance of PathBuf
representing our path
Return a String
representing our path
Formats the value using the given formatter. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
impl<T> Any for T where
T: 'static + ?Sized,
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
impl<T, U> Into<U> for T where
U: From<T>,
The type returned in the event of a conversion error.
The type returned in the event of a conversion error.