Skip to main content

oxilean_codegen/runtime_codegen/
closurelayout_traits.rs

1//! # ClosureLayout - Trait Implementations
2//!
3//! This module contains trait implementations for `ClosureLayout`.
4//!
5//! ## Implemented Traits
6//!
7//! - `Display`
8//!
9//! 🤖 Generated with [SplitRS](https://github.com/cool-japan/splitrs)
10
11use crate::lcnf::*;
12use crate::native_backend::*;
13
14use super::types::ClosureLayout;
15use std::fmt;
16
17impl fmt::Display for ClosureLayout {
18    fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
19        write!(
20            f,
21            "ClosureLayout {{ arity={}, captured={}, env_offset={}, total={} }}",
22            self.arity, self.num_captured, self.env_offset, self.object_layout.total_size,
23        )
24    }
25}