pub struct Path { /* private fields */ }Implementations§
Source§impl Path
impl Path
pub fn new(path: impl Into<String>) -> Path
pub fn push(&mut self, other: impl Into<Path>)
pub fn is_absolute(&self) -> bool
pub fn is_relative(&self) -> bool
pub fn pop(&mut self) -> bool
pub fn join(&self, other: impl Into<Path>) -> Path
pub fn file_name(&self) -> &str
pub fn file_stem(&self) -> &str
pub fn extension(&self) -> &str
pub fn dirname(&self) -> String
pub fn is_uri(&self) -> bool
Trait Implementations§
Source§impl From<Path> for IncludeTarget
impl From<Path> for IncludeTarget
impl Eq for Path
impl StructuralPartialEq for Path
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