float_pigment_mlp/node/
text.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
use std::fmt::Debug;

#[derive(Debug)]
pub struct Text(String);

impl Text {
    pub fn text(&self) -> &str {
        &self.0
    }
    pub(crate) fn new(text: String) -> Self {
        Self(text)
    }
}