Skip to main content

oxilean_codegen/opt_ctfe/
ctfemode_traits.rs

1//! # CtfeMode - Trait Implementations
2//!
3//! This module contains trait implementations for `CtfeMode`.
4//!
5//! ## Implemented Traits
6//!
7//! - `Display`
8//!
9//! 🤖 Generated with [SplitRS](https://github.com/cool-japan/splitrs)
10
11use super::types::CtfeMode;
12use std::fmt;
13
14impl std::fmt::Display for CtfeMode {
15    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
16        match self {
17            CtfeMode::FullEval => write!(f, "full"),
18            CtfeMode::PartialEval => write!(f, "partial"),
19            CtfeMode::FoldOnly => write!(f, "fold_only"),
20            CtfeMode::Disabled => write!(f, "disabled"),
21        }
22    }
23}