Skip to main content

oxilean_runtime/string_pool/
stringpool_traits.rs

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