Skip to main content

oxilean_runtime/arena/
regionmanager_traits.rs

1//! # RegionManager - Trait Implementations
2//!
3//! This module contains trait implementations for `RegionManager`.
4//!
5//! ## Implemented Traits
6//!
7//! - `Default`
8//! - `Debug`
9//!
10//! 🤖 Generated with [SplitRS](https://github.com/cool-japan/splitrs)
11
12use super::types::RegionManager;
13use std::fmt;
14
15impl Default for RegionManager {
16    fn default() -> Self {
17        Self::new()
18    }
19}
20
21impl fmt::Debug for RegionManager {
22    fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
23        f.debug_struct("RegionManager")
24            .field("num_regions", &self.regions.len())
25            .field("scope_depth", &self.scope_stack.len())
26            .field("total_bytes_used", &self.total_bytes_used())
27            .finish()
28    }
29}