Returns true if this file has any operations.
(&self)
| 96 | |
| 97 | /// Returns true if this file has any operations. |
| 98 | pub fn has_operations(&self) -> bool { |
| 99 | self.trunk_op.is_some() || !self.line_ops.is_empty() |
| 100 | } |
| 101 | |
| 102 | /// Consumes and returns the trunk operation. |
| 103 | pub fn into_trunk_op(self) -> Option<TrunkOp> { |