Check if tree is in a valid state for operations
(&self, operation: &str)
| 363 | |
| 364 | /// Check if tree is in a valid state for operations |
| 365 | pub fn validate_for_operation(&self, operation: &str) -> crate::error::BTreeResult<()> { |
| 366 | self.check_invariants_detailed().map_err(|e| { |
| 367 | BPlusTreeError::data_integrity( |
| 368 | operation, |
| 369 | &format!("Validation for {}: {}", operation, e), |
| 370 | ) |
| 371 | }) |
| 372 | } |
| 373 | } |