(&self)
| 466 | /// Returns `true` if this is an "invalid state" error. |
| 467 | #[inline] |
| 468 | pub fn is_invalid_state(&self) -> bool { |
| 469 | matches!( |
| 470 | self, |
| 471 | ApplyError::InvalidTrunkState { .. } |
| 472 | | ApplyError::InvalidBranchState { .. } |
| 473 | | ApplyError::InvalidLeafState { .. } |
| 474 | ) |
| 475 | } |
| 476 | |
| 477 | /// Returns `true` if this is an ordering-related error. |
| 478 | #[inline] |
no outgoing calls