oxilean_codegen/chapel_backend/
chapelintent_traits.rs1use 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}