Skip to main content

oxilean_codegen/closure_convert/
closureinfo_traits.rs

1//! # ClosureInfo - Trait Implementations
2//!
3//! This module contains trait implementations for `ClosureInfo`.
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::ClosureInfo;
14use std::fmt;
15
16impl fmt::Display for ClosureInfo {
17    fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
18        write!(
19            f,
20            "ClosureInfo {{ arity={}, captured={}, escaping={}, side_effects={} }}",
21            self.arity,
22            self.free_vars.len(),
23            self.is_escaping,
24            self.has_side_effects,
25        )
26    }
27}