float_pigment_mlp/node/
text.rs

1use std::fmt::Debug;
2
3#[derive(Debug)]
4pub struct Text(String);
5
6impl Text {
7    pub fn text(&self) -> &str {
8        &self.0
9    }
10    pub(crate) fn new(text: String) -> Self {
11        Self(text)
12    }
13}