MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / working_copy

Method working_copy

atomic-core/src/change/classification.rs:24–29  ·  view source on GitHub ↗

Returns the snapshot owner, if this is a snapshot.

(&self)

Source from the content-addressed store, hash-verified

22impl ChangeKind {
23 /// Returns the snapshot owner, if this is a snapshot.
24 pub fn working_copy(&self) -> Option<WorkingCopyId> {
25 match self {
26 Self::Durable => None,
27 Self::Snapshot { working_copy } => Some(*working_copy),
28 }
29 }
30
31 /// Returns whether this change is durable history.
32 pub fn is_durable(&self) -> bool {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected