Skip to main content

oxilean_codegen/chapel_backend/
chapelintent_traits.rs

1//! # ChapelIntent - Trait Implementations
2//!
3//! This module contains trait implementations for `ChapelIntent`.
4//!
5//! ## Implemented Traits
6//!
7//! - `Display`
8//!
9//! 🤖 Generated with [SplitRS](https://github.com/cool-japan/splitrs)
10
11use super::types::ChapelIntent;
12use std::fmt;
13
14impl fmt::Display for ChapelIntent {
15    fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
16        match self {
17            ChapelIntent::In => write!(f, "in"),
18            ChapelIntent::Out => write!(f, "out"),
19            ChapelIntent::InOut => write!(f, "inout"),
20            ChapelIntent::Ref => write!(f, "ref"),
21            ChapelIntent::Const => write!(f, "const"),
22            ChapelIntent::ConstRef => write!(f, "const ref"),
23            ChapelIntent::Param => write!(f, "param"),
24            ChapelIntent::Type => write!(f, "type"),
25        }
26    }
27}