Skip to main content

oxilean_codegen/opt_licm/
licmcodestats_traits.rs

1//! # LicmCodeStats - Trait Implementations
2//!
3//! This module contains trait implementations for `LicmCodeStats`.
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::LicmCodeStats;
14use std::fmt;
15
16impl std::fmt::Display for LicmCodeStats {
17    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
18        write!(
19            f,
20            "LicmCodeStats {{ loops={}, invariant={}, hoisted={}, sunk={}, rejected={} }}",
21            self.loops_analyzed, self.invariant_exprs, self.hoisted, self.sunk, self.rejected,
22        )
23    }
24}