pub struct IdentityPaths<'a> { /* private fields */ }Expand description
Turns finding paths into identity parts.
Implementations§
Source§impl<'a> IdentityPaths<'a>
impl<'a> IdentityPaths<'a>
Sourcepub const fn new(root: &'a Path) -> Self
pub const fn new(root: &'a Path) -> Self
Paths under root become root-relative. Other paths stay as they are.
Sourcepub fn set<'p>(&self, paths: impl IntoIterator<Item = &'p Path>) -> String
pub fn set<'p>(&self, paths: impl IntoIterator<Item = &'p Path>) -> String
The sorted, unique keys of paths, joined by |.
Each key escapes % as %25 and | as %7C before the join, so a
file name that contains | cannot give the same part as two files.
A key without these characters does not change.
Trait Implementations§
Source§impl<'a> Clone for IdentityPaths<'a>
impl<'a> Clone for IdentityPaths<'a>
impl<'a> Copy for IdentityPaths<'a>
Auto Trait Implementations§
impl<'a> Freeze for IdentityPaths<'a>
impl<'a> RefUnwindSafe for IdentityPaths<'a>
impl<'a> Send for IdentityPaths<'a>
impl<'a> Sync for IdentityPaths<'a>
impl<'a> Unpin for IdentityPaths<'a>
impl<'a> UnsafeUnpin for IdentityPaths<'a>
impl<'a> UnwindSafe for IdentityPaths<'a>
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