Skip to main content

oxilean_parse/command/
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::Infix => write!(f, "infix"),
18            NotationKind::Postfix => write!(f, "postfix"),
19            NotationKind::Notation => write!(f, "notation"),
20        }
21    }
22}