Skip to main content

treenode/impls/
from_string.rs

1use crate::Node;
2
3impl From<String> for Node<String> {
4    fn from(data: String) -> Self {
5        Self {
6            data,
7            children: vec![],
8        }
9    }
10}