Returns the snapshot owner, if this is a snapshot.
(&self)
| 22 | impl 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 { |
nothing calls this directly
no outgoing calls
no test coverage detected