Returns true if this is an edit (no trunk operation).
(&self)
| 457 | |
| 458 | /// Returns true if this is an edit (no trunk operation). |
| 459 | pub fn is_edit(&self) -> bool { |
| 460 | self.trunk_op.is_none() && !self.line_ops.is_empty() |
| 461 | } |
| 462 | |
| 463 | /// Consumes and returns the trunk operation. |
| 464 | pub fn into_trunk_op(self) -> Option<TrunkOp> { |
no test coverage detected