Skip to main content

oxilean_codegen/native_backend/
condcode_traits.rs

1//! # CondCode - Trait Implementations
2//!
3//! This module contains trait implementations for `CondCode`.
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::CondCode;
14use std::fmt;
15
16impl fmt::Display for CondCode {
17    fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
18        match self {
19            CondCode::Eq => write!(f, "eq"),
20            CondCode::Ne => write!(f, "ne"),
21            CondCode::Lt => write!(f, "lt"),
22            CondCode::Le => write!(f, "le"),
23            CondCode::Gt => write!(f, "gt"),
24            CondCode::Ge => write!(f, "ge"),
25            CondCode::Ult => write!(f, "ult"),
26            CondCode::Ule => write!(f, "ule"),
27            CondCode::Ugt => write!(f, "ugt"),
28            CondCode::Uge => write!(f, "uge"),
29        }
30    }
31}