pub struct PathCache { /* private fields */ }Expand description
Concurrent cache for parsed paths.
Implementations§
Source§impl PathCache
impl PathCache
Sourcepub fn get_or_parse(&self, path: &str) -> Arc<ParsedPath>
pub fn get_or_parse(&self, path: &str) -> Arc<ParsedPath>
Get a cached parsed path or parse and cache it.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PathCache
impl !RefUnwindSafe for PathCache
impl Send for PathCache
impl Sync for PathCache
impl Unpin for PathCache
impl UnwindSafe for PathCache
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