pub struct PathParser { /* private fields */ }Expand description
Path parser for analyzing path structure
Implementations§
Source§impl PathParser
impl PathParser
Sourcepub fn parse(path: &str) -> PathResult<ParsedPath>
pub fn parse(path: &str) -> PathResult<ParsedPath>
Parse path into structured components
§Errors
Returns PathError if parsing fails (though currently it always succeeds).
Sourcepub fn detect_style(path: &str) -> PathStyle
pub fn detect_style(path: &str) -> PathStyle
Detect path style
Sourcepub fn normalize_path(path: &Path) -> PathResult<PathBuf>
pub fn normalize_path(path: &Path) -> PathResult<PathBuf>
Trait Implementations§
Source§impl Clone for PathParser
impl Clone for PathParser
Source§fn clone(&self) -> PathParser
fn clone(&self) -> PathParser
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PathParser
impl Debug for PathParser
Auto Trait Implementations§
impl Freeze for PathParser
impl RefUnwindSafe for PathParser
impl Send for PathParser
impl Sync for PathParser
impl Unpin for PathParser
impl UnwindSafe for PathParser
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