Get the content bytes regardless of outcome type. For conflicts, returns the left side (caller should check [`is_conflict`](Self::is_conflict) first). For [`NoCrdtData`](Self::NoCrdtData), returns an empty slice.
(&self)
| 87 | /// [`is_conflict`](Self::is_conflict) first). For [`NoCrdtData`](Self::NoCrdtData), |
| 88 | /// returns an empty slice. |
| 89 | pub fn content(&self) -> &[u8] { |
| 90 | match self { |
| 91 | Self::Clean(c) => c, |
| 92 | Self::AutoMerged { content, .. } => content, |
| 93 | Self::Conflict { left, .. } => left, |
| 94 | Self::NoCrdtData => &[], |
| 95 | } |
| 96 | } |
| 97 | } |
| 98 | |
| 99 | #[cfg(test)] |
no outgoing calls