(&self)
| 220 | } |
| 221 | |
| 222 | pub fn branch_ops(&self) -> Vec<(BranchId, &BranchOp)> { |
| 223 | self.file_ops |
| 224 | .iter() |
| 225 | .flat_map(|f| f.line_ops().iter().map(|l| (l.branch_id(), l.operation()))) |
| 226 | .collect() |
| 227 | } |
| 228 | |
| 229 | /// Consumes the result and returns its parts. |
| 230 | pub fn into_parts(self) -> (Vec<FileOps>, Vec<u8>, CrdtBuildStats) { |