oxilean_codegen/prolog_backend/prologmode_traits.rs
1//! # PrologMode - Trait Implementations
2//!
3//! This module contains trait implementations for `PrologMode`.
4//!
5//! ## Implemented Traits
6//!
7//! - `Display`
8//!
9//! 🤖 Generated with [SplitRS](https://github.com/cool-japan/splitrs)
10
11use super::functions::fmt_dcg_seq;
12use super::types::PrologMode;
13use std::fmt;
14
15impl fmt::Display for PrologMode {
16 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
17 match self {
18 PrologMode::In => write!(f, "+"),
19 PrologMode::Out => write!(f, "-"),
20 PrologMode::InOut => write!(f, "?"),
21 PrologMode::Meta => write!(f, ":"),
22 PrologMode::NotFurther => write!(f, "@"),
23 }
24 }
25}