pub struct PlannedItem { /* private fields */ }Expand description
A filesystem item observed during the traversal that created a removal plan.
The traversal is not atomic. Instances are not automatically updated or revalidated if filesystem contents change during or after planning.
Implementations§
Source§impl PlannedItem
impl PlannedItem
Sourcepub fn path(&self) -> &Path
pub fn path(&self) -> &Path
Returns the absolute path to the item, resolved under the normalized root.
On Windows, the canonicalized path may include the extended-length path prefix (\\?\).
Sourcepub fn relative_path(&self) -> &str
pub fn relative_path(&self) -> &str
Returns the item’s path relative to the processing root, always normalized with / separators.
Trait Implementations§
Source§impl Clone for PlannedItem
impl Clone for PlannedItem
Source§impl Debug for PlannedItem
impl Debug for PlannedItem
impl Eq for PlannedItem
Source§impl PartialEq for PlannedItem
impl PartialEq for PlannedItem
impl StructuralPartialEq for PlannedItem
Auto Trait Implementations§
impl Forget for PlannedItem
impl Freeze for PlannedItem
impl Move for PlannedItem
impl RefUnwindSafe for PlannedItem
impl Send for PlannedItem
impl Sync for PlannedItem
impl Unpin for PlannedItem
impl UnsafeUnpin for PlannedItem
impl UnwindSafe for PlannedItem
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