(&self)
| 454 | /// Returns `true` if this is an "already exists" error. |
| 455 | #[inline] |
| 456 | pub fn is_already_exists(&self) -> bool { |
| 457 | matches!( |
| 458 | self, |
| 459 | ApplyError::TrunkAlreadyExists { .. } |
| 460 | | ApplyError::BranchAlreadyExists { .. } |
| 461 | | ApplyError::LeafAlreadyExists { .. } |
| 462 | | ApplyError::PathAlreadyExists { .. } |
| 463 | ) |
| 464 | } |
| 465 | |
| 466 | /// Returns `true` if this is an "invalid state" error. |
| 467 | #[inline] |
no outgoing calls