Skip to main content

oxilean_kernel/arena/
diagmeta_traits.rs

1//! # DiagMeta - Trait Implementations
2//!
3//! This module contains trait implementations for `DiagMeta`.
4//!
5//! ## Implemented Traits
6//!
7//! - `Display`
8//! - `Default`
9//!
10//! 🤖 Generated with [SplitRS](https://github.com/cool-japan/splitrs)
11
12use super::types::DiagMeta;
13
14impl std::fmt::Display for DiagMeta {
15    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
16        write!(
17            f,
18            "{}",
19            self.entries
20                .iter()
21                .map(|(k, v)| format!("{}={}", k, v))
22                .collect::<Vec<_>>()
23                .join(", ")
24        )
25    }
26}
27
28impl Default for DiagMeta {
29    fn default() -> Self {
30        Self::new()
31    }
32}