pub struct PrefixPathPool { /* private fields */ }Expand description
A bounded accelerator for sharing existing prefixes, not a semantic cache. Weak entries do not retain path bodies; clearing never invalidates a path.
Implementations§
Source§impl PrefixPathPool
impl PrefixPathPool
Sourcepub fn retain(&mut self, segments: &[Seg]) -> Rc<PrefixPath>
pub fn retain(&mut self, segments: &[Seg]) -> Rc<PrefixPath>
Retain a distinct outer path handle with any locally shared prefixes.
Sourcepub fn retain_value(&mut self, segments: &[Seg]) -> PrefixPath
pub fn retain_value(&mut self, segments: &[Seg]) -> PrefixPath
Retain a path value with shared prefixes, without an outer allocation. Cloning or mutating the returned handle leaves other handles independent.
Sourcepub fn stats(&self) -> PrefixPathPoolStats
pub fn stats(&self) -> PrefixPathPoolStats
O(entry count), explicitly requested diagnostics; absent from binding.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for PrefixPathPool
impl !Send for PrefixPathPool
impl !Sync for PrefixPathPool
impl !UnwindSafe for PrefixPathPool
impl Forget for PrefixPathPool
impl Freeze for PrefixPathPool
impl Move for PrefixPathPool
impl Unpin for PrefixPathPool
impl UnsafeUnpin for PrefixPathPool
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