oxilean_codegen/opt_vectorize/cmpop_traits.rs
1//! # CmpOp - Trait Implementations
2//!
3//! This module contains trait implementations for `CmpOp`.
4//!
5//! ## Implemented Traits
6//!
7//! - `Display`
8//!
9//! 🤖 Generated with [SplitRS](https://github.com/cool-japan/splitrs)
10
11use super::types::CmpOp;
12use std::fmt;
13
14impl fmt::Display for CmpOp {
15 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
16 match self {
17 CmpOp::Eq => write!(f, "eq"),
18 CmpOp::Ne => write!(f, "ne"),
19 CmpOp::Lt => write!(f, "lt"),
20 CmpOp::Le => write!(f, "le"),
21 CmpOp::Gt => write!(f, "gt"),
22 CmpOp::Ge => write!(f, "ge"),
23 }
24 }
25}