pub struct PathInfo {
pub prefix: String,
pub segments: Vec<Segment>,
pub filename: String,
pub style: PathStyle,
}Expand description
Parsed representation of a path.
Fields§
§prefix: StringPrefix: root (/, C:\, \\server\share\, ., ~, or empty).
segments: Vec<Segment>Directory segments between prefix and filename.
filename: StringThe final component (filename). Sacred, never truncated.
style: PathStyleDetected or forced path style.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PathInfo
impl RefUnwindSafe for PathInfo
impl Send for PathInfo
impl Sync for PathInfo
impl Unpin for PathInfo
impl UnsafeUnpin for PathInfo
impl UnwindSafe for PathInfo
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