pub struct ReadView { /* private fields */ }Expand description
A consistent, immutable view of a branch at one commit.
A view holds an Arc to a commit that can never change, so readers never
block and never observe a half-applied change set (DESIGN §4.3). Holding a
view keeps that commit alive even if its branch is discarded meanwhile.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Forget for ReadView
impl Freeze for ReadView
impl Move for ReadView
impl RefUnwindSafe for ReadView
impl Send for ReadView
impl Sync for ReadView
impl Unpin for ReadView
impl UnsafeUnpin for ReadView
impl UnwindSafe for ReadView
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