Skip to main content

oxilean_codegen/llvm_backend/
fcmppred_traits.rs

1//! # FcmpPred - Trait Implementations
2//!
3//! This module contains trait implementations for `FcmpPred`.
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::FcmpPred;
14use std::fmt;
15
16impl fmt::Display for FcmpPred {
17    fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
18        match self {
19            FcmpPred::Oeq => write!(f, "oeq"),
20            FcmpPred::One => write!(f, "one"),
21            FcmpPred::Olt => write!(f, "olt"),
22            FcmpPred::Ogt => write!(f, "ogt"),
23            FcmpPred::Ole => write!(f, "ole"),
24            FcmpPred::Oge => write!(f, "oge"),
25            FcmpPred::Uno => write!(f, "uno"),
26            FcmpPred::Ord => write!(f, "ord"),
27            FcmpPred::True_ => write!(f, "true"),
28            FcmpPred::False_ => write!(f, "false"),
29        }
30    }
31}