pub struct PathParts {
pub directory: Option<String>,
pub file_name: Option<String>,
pub extension: Option<String>,
}Expand description
A lexical view of a path-like input.
Fields§
§directory: Option<String>The parent directory portion when one is present.
file_name: Option<String>The final file-name segment when one is present.
extension: Option<String>The final simple extension when one is present.
Trait Implementations§
impl Eq for PathParts
impl StructuralPartialEq for PathParts
Auto Trait Implementations§
impl Freeze for PathParts
impl RefUnwindSafe for PathParts
impl Send for PathParts
impl Sync for PathParts
impl Unpin for PathParts
impl UnsafeUnpin for PathParts
impl UnwindSafe for PathParts
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