pub struct RefReadSnapshot { /* private fields */ }Expand description
A single-pass view of the ref namespace used while planning a transaction.
Unlike user-facing ref iteration, snapshot construction is silent and keeps broken loose refs as typed entries so callers can diagnose them without rescanning the filesystem or emitting iteration warnings.
Implementations§
Source§impl RefReadSnapshot
impl RefReadSnapshot
pub fn get(&self, name: &str) -> Option<&RefReadSnapshotValue>
Trait Implementations§
Source§impl Clone for RefReadSnapshot
impl Clone for RefReadSnapshot
Source§fn clone(&self) -> RefReadSnapshot
fn clone(&self) -> RefReadSnapshot
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RefReadSnapshot
impl Debug for RefReadSnapshot
Source§impl Default for RefReadSnapshot
impl Default for RefReadSnapshot
Source§fn default() -> RefReadSnapshot
fn default() -> RefReadSnapshot
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for RefReadSnapshot
impl RefUnwindSafe for RefReadSnapshot
impl Send for RefReadSnapshot
impl Sync for RefReadSnapshot
impl Unpin for RefReadSnapshot
impl UnsafeUnpin for RefReadSnapshot
impl UnwindSafe for RefReadSnapshot
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