Skip to main content

oxilean_codegen/futhark_backend/
futharkcodestats_traits.rs

1//! # FutharkCodeStats - Trait Implementations
2//!
3//! This module contains trait implementations for `FutharkCodeStats`.
4//!
5//! ## Implemented Traits
6//!
7//! - `Display`
8//!
9//! 🤖 Generated with [SplitRS](https://github.com/cool-japan/splitrs)
10
11use super::types::FutharkCodeStats;
12use std::fmt;
13
14impl std::fmt::Display for FutharkCodeStats {
15    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
16        write!(
17            f,
18            "FutharkCodeStats {{ fns={}, entries={}, types={}, maps={}, reduces={}, scans={} }}",
19            self.num_functions,
20            self.num_entries,
21            self.num_type_defs,
22            self.num_map_exprs,
23            self.num_reduce_exprs,
24            self.num_scan_exprs,
25        )
26    }
27}