(&self)
| 1751 | #[cfg(feature = "chrono")] |
| 1752 | impl TsOp { |
| 1753 | fn str(&self) -> &'static str { |
| 1754 | match self { |
| 1755 | TsOp::Add => "add", |
| 1756 | TsOp::Sub => "sub", |
| 1757 | } |
| 1758 | } |
| 1759 | } |
| 1760 | |
| 1761 | /// Performs a checked arithmetic operation [`TsOp`] on a timestamp and a duration and ensures that |