gesha_rust_types/module_name.rs
1use std::fmt::{Display, Formatter};
2
3#[derive(Clone, Debug, Hash, Eq, PartialEq)]
4pub struct ModuleName(String);
5
6impl ModuleName {
7 pub fn new<A: Into<String>>(a: A) -> Self {
8 Self(a.into())
9 }
10}
11
12impl Display for ModuleName {
13 fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result {
14 Display::fmt(&self.0, f)
15 }
16}