//! # Literal - Trait Implementations
//!
//! This module contains trait implementations for `Literal`.
//!
//! ## Implemented Traits
//!
//! - `Display`
//!
//! 🤖 Generated with [SplitRS](https://github.com/cool-japan/splitrs)
use super::functions::has_loose_bvar;
use super::types::Literal;
use std::fmt;
impl fmt::Display for Literal {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
match self {
Literal::Nat(n) => write!(f, "{}", n),
Literal::Str(s) => write!(f, "\"{}\"", s),
}
}
}