1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
pub struct Native(String); impl Native { pub fn new(text: impl Into<String>) -> Self { Self(text.into()) } pub fn text(&self) -> &str { &self.0 } } pub fn n(text: impl Into<String>) -> Native { Native::new(text) }