oxilean_codegen/closure_convert/escapeinfo_traits.rs
1//! # EscapeInfo - Trait Implementations
2//!
3//! This module contains trait implementations for `EscapeInfo`.
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::EscapeInfo;
14use std::fmt;
15
16impl fmt::Display for EscapeInfo {
17 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
18 match self {
19 EscapeInfo::NoEscape => write!(f, "no-escape"),
20 EscapeInfo::LocalEscape => write!(f, "local-escape"),
21 EscapeInfo::GlobalEscape => write!(f, "global-escape"),
22 }
23 }
24}