Skip to main content

oxilean_codegen/opt_licm/
loopinfosummary_traits.rs

1//! # LoopInfoSummary - Trait Implementations
2//!
3//! This module contains trait implementations for `LoopInfoSummary`.
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::LoopInfoSummary;
14use std::fmt;
15
16impl std::fmt::Display for LoopInfoSummary {
17    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
18        write!(
19            f,
20            "LoopInfoSummary {{ total={}, inner={}, countable={}, avg_depth={:.1}, max_depth={} }}",
21            self.total_loops,
22            self.inner_loops,
23            self.countable_loops,
24            self.avg_depth,
25            self.max_depth,
26        )
27    }
28}