(&mut self, name: Option<&str>, text: &str)
| 95 | } |
| 96 | |
| 97 | fn load(&mut self, name: Option<&str>, text: &str) { |
| 98 | self.name = name.map(str::to_owned); |
| 99 | text.clone_into(&mut self.text); |
| 100 | } |
| 101 | |
| 102 | fn name(&self) -> Option<&str> { |
| 103 | self.name.as_deref() |
no outgoing calls