Skip to main content

oxilean_codegen/llvm_backend/
icmppred_traits.rs

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