Skip to main content

oxilean_codegen/mlir_backend/
cmpipred_traits.rs

1//! # CmpiPred - Trait Implementations
2//!
3//! This module contains trait implementations for `CmpiPred`.
4//!
5//! ## Implemented Traits
6//!
7//! - `Display`
8//!
9//! 🤖 Generated with [SplitRS](https://github.com/cool-japan/splitrs)
10
11use super::types::CmpiPred;
12use std::fmt;
13
14impl fmt::Display for CmpiPred {
15    fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
16        match self {
17            CmpiPred::Eq => write!(f, "eq"),
18            CmpiPred::Ne => write!(f, "ne"),
19            CmpiPred::Slt => write!(f, "slt"),
20            CmpiPred::Sle => write!(f, "sle"),
21            CmpiPred::Sgt => write!(f, "sgt"),
22            CmpiPred::Sge => write!(f, "sge"),
23            CmpiPred::Ult => write!(f, "ult"),
24            CmpiPred::Ule => write!(f, "ule"),
25            CmpiPred::Ugt => write!(f, "ugt"),
26            CmpiPred::Uge => write!(f, "uge"),
27        }
28    }
29}