Skip to main content

oxilean_codegen/opt_ctfe/
ctfeversioninfo_traits.rs

1//! # CtfeVersionInfo - Trait Implementations
2//!
3//! This module contains trait implementations for `CtfeVersionInfo`.
4//!
5//! ## Implemented Traits
6//!
7//! - `Default`
8//! - `Display`
9//!
10//! 🤖 Generated with [SplitRS](https://github.com/cool-japan/splitrs)
11
12use super::types::CtfeVersionInfo;
13use std::fmt;
14
15impl Default for CtfeVersionInfo {
16    fn default() -> Self {
17        Self {
18            pass_version: 1,
19            min_fuel: 1,
20            max_fuel: 1_000_000,
21            supports_memo: true,
22            supports_partial_eval: true,
23        }
24    }
25}
26
27impl std::fmt::Display for CtfeVersionInfo {
28    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
29        write!(
30            f,
31            "CtfeVersionInfo {{ v={}, min_fuel={}, max_fuel={}, memo={}, partial={} }}",
32            self.pass_version,
33            self.min_fuel,
34            self.max_fuel,
35            self.supports_memo,
36            self.supports_partial_eval
37        )
38    }
39}