Skip to main content

oxilean_parse/notation_system/
notationkind_traits.rs

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