Skip to main content

oxilean_parse/ast_impl/
astnotationkind_traits.rs

1//! # AstNotationKind - Trait Implementations
2//!
3//! This module contains trait implementations for `AstNotationKind`.
4//!
5//! ## Implemented Traits
6//!
7//! - `Display`
8//!
9//! 🤖 Generated with [SplitRS](https://github.com/cool-japan/splitrs)
10
11use super::types::AstNotationKind;
12use std::fmt;
13
14impl fmt::Display for AstNotationKind {
15    fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
16        match self {
17            AstNotationKind::Prefix => write!(f, "prefix"),
18            AstNotationKind::Postfix => write!(f, "postfix"),
19            AstNotationKind::Infixl => write!(f, "infixl"),
20            AstNotationKind::Infixr => write!(f, "infixr"),
21            AstNotationKind::Notation => write!(f, "notation"),
22        }
23    }
24}