oxilean_codegen/cil_backend/cilcallconv_traits.rs
1//! # CilCallConv - Trait Implementations
2//!
3//! This module contains trait implementations for `CilCallConv`.
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::CilCallConv;
14use std::fmt;
15
16impl fmt::Display for CilCallConv {
17 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
18 match self {
19 CilCallConv::Default => Ok(()),
20 CilCallConv::Instance => write!(f, "instance"),
21 CilCallConv::Generic(n) => write!(f, "instance generic({})", n),
22 }
23 }
24}