pub struct Path {}Expand description
Helper struct for file path operations.
Implementations§
Source§impl Path
impl Path
Sourcepub fn get_filename(path: &str) -> String
pub fn get_filename(path: &str) -> String
Sourcepub fn get_relative(path: &str, target: &str) -> String
pub fn get_relative(path: &str, target: &str) -> String
Sourcepub fn replace_ext(path: &str, new_ext: &str) -> String
pub fn replace_ext(path: &str, new_ext: &str) -> String
Sourcepub fn replace_filename(path: &str, new_file: &str) -> String
pub fn replace_filename(path: &str, new_file: &str) -> String
Auto Trait Implementations§
impl Freeze for Path
impl RefUnwindSafe for Path
impl Send for Path
impl Sync for Path
impl Unpin for Path
impl UnwindSafe for Path
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