oxilean_codegen/opt_reuse/reusestatsext_traits.rs
1//! # ReuseStatsExt - Trait Implementations
2//!
3//! This module contains trait implementations for `ReuseStatsExt`.
4//!
5//! ## Implemented Traits
6//!
7//! - `Display`
8//!
9//! 🤖 Generated with [SplitRS](https://github.com/cool-japan/splitrs)
10
11use crate::lcnf::*;
12
13use super::types::ReuseStatsExt;
14use std::fmt;
15
16impl std::fmt::Display for ReuseStatsExt {
17 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
18 write!(
19 f,
20 "ReuseStatsExt {{ analyzed={}, reuses={}, stack={}, eliminated={}, bytes_saved={} }}",
21 self.allocs_analyzed,
22 self.reuses_applied,
23 self.stack_allocations,
24 self.allocs_eliminated,
25 self.bytes_saved,
26 )
27 }
28}