1use std::fmt;
2
3#[derive(Debug, Clone)]
4pub struct Ident<T = String>(pub T);
5
6impl From<&str> for Ident {
7 fn from(value: &str) -> Self {
8 Ident(value.into())
9 }
10}
11
12impl fmt::Display for Ident {
13 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
14 self.0.fmt(f)
15 }
16}