pub struct Rooted<S> { /* private fields */ }Expand description
A store confined to a subtree of another store.
Incoming paths are joined under root before reaching the inner store,
and result paths from writes have the root stripped (component-wise)
before being returned, so the root never leaks to callers. A write
result that escapes the root is an error rather than a leak.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<S> Freeze for Rooted<S>where
S: Freeze,
impl<S> RefUnwindSafe for Rooted<S>where
S: RefUnwindSafe,
impl<S> Send for Rooted<S>where
S: Send,
impl<S> Sync for Rooted<S>where
S: Sync,
impl<S> Unpin for Rooted<S>where
S: Unpin,
impl<S> UnsafeUnpin for Rooted<S>where
S: UnsafeUnpin,
impl<S> UnwindSafe for Rooted<S>where
S: 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