pub struct PathReport {
pub total_entries: usize,
pub empty_entries: usize,
pub broken_entries: Vec<String>,
pub duplicate_entries: Vec<PathBuf>,
pub has_current_dir: bool,
}Expand description
The result of analysing a raw PATH string.
Fields§
§total_entries: usizeNumber of tokens after splitting, empty ones included.
empty_entries: usizeHow many tokens were empty (e.g. a leading/trailing separator).
broken_entries: Vec<String>Raw entries that resolve to folders which do not exist.
duplicate_entries: Vec<PathBuf>Resolved folders that appear on PATH more than once (deduplicated).
has_current_dir: boolWhether the special . (current directory) entry is present.
Trait Implementations§
Source§impl Clone for PathReport
impl Clone for PathReport
Source§impl Debug for PathReport
impl Debug for PathReport
impl Eq for PathReport
Source§impl PartialEq for PathReport
impl PartialEq for PathReport
impl StructuralPartialEq for PathReport
Auto Trait Implementations§
impl Forget for PathReport
impl Freeze for PathReport
impl RefUnwindSafe for PathReport
impl Send for PathReport
impl Sync for PathReport
impl Unpin for PathReport
impl UnsafeUnpin for PathReport
impl UnwindSafe for PathReport
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