Skip to main content

oxilean_codegen/pipeline/
optlevel_traits.rs

1//! # OptLevel - Trait Implementations
2//!
3//! This module contains trait implementations for `OptLevel`.
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::OptLevel;
14use std::fmt;
15
16impl fmt::Display for OptLevel {
17    fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
18        match self {
19            OptLevel::O0 => write!(f, "O0"),
20            OptLevel::O1 => write!(f, "O1"),
21            OptLevel::O2 => write!(f, "O2"),
22            OptLevel::O3 => write!(f, "O3"),
23        }
24    }
25}