pub struct PathBufOutput { /* private fields */ }
Available on crate feature
std
only.Expand description
An implementation of Output
for file system paths.
Works on both Unix-like and Windows platforms.
Implementations§
Source§impl PathBufOutput
impl PathBufOutput
Sourcepub fn into_path_buf(self) -> PathBuf
pub fn into_path_buf(self) -> PathBuf
Transform into PathBuf
.
Sourcepub fn from_path_buf(path: PathBuf) -> Self
pub fn from_path_buf(path: PathBuf) -> Self
Create path buffer from the supplied standard one.
This method involves memory allocation only on Windows platforms.
Sourcepub fn from_path(path: &Path) -> Self
pub fn from_path(path: &Path) -> Self
Create path buffer from the supplied path.
This method involves memory allocation only on Unix platforms.
Sourcepub fn with_capacity(capacity: usize) -> Self
pub fn with_capacity(capacity: usize) -> Self
Create empty path buffer with desired capacity.
Trait Implementations§
Source§impl From<PathBuf> for PathBufOutput
impl From<PathBuf> for PathBufOutput
Source§impl From<PathBufOutput> for PathBuf
impl From<PathBufOutput> for PathBuf
Source§fn from(other: PathBufOutput) -> Self
fn from(other: PathBufOutput) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PathBufOutput
impl RefUnwindSafe for PathBufOutput
impl Send for PathBufOutput
impl Sync for PathBufOutput
impl Unpin for PathBufOutput
impl UnwindSafe for PathBufOutput
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more