pub struct Place { /* private fields */ }Expand description
Where a path leads, ready to be compared many times: work out the
Place of each path once, then ask it as often as needed.
Implementations§
Source§impl Place
impl Place
Sourcepub fn of(path: &Path, case: NameCase) -> Place
pub fn of(path: &Path, case: NameCase) -> Place
Where path leads, whether or not it exists yet: . and ..
resolved, and its longest existing part canonicalized, so a link or a
short name is where it leads; the part that does not exist yet is
kept as written. The existing part is compared as the file system
spells it, and only the rest is folded when case ignores case,
since no folding table cuno could hold is the file system’s own. A
relative path is only resolved by name, since a library does not
read the process’s current directory.
Trait Implementations§
Auto Trait Implementations§
impl Forget for Place
impl Freeze for Place
impl Move for Place
impl RefUnwindSafe for Place
impl Send for Placewhere
RawVecInner: Send,
impl Sync for Placewhere
RawVecInner: Sync,
impl Unpin for Place
impl UnsafeUnpin for Placewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
impl UnwindSafe for Placewhere
RawVecInner: UnwindSafe,
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