context_weaver/core/nodes/
empty.rs

1use crate::WorldInfoNode;
2
3#[derive(Debug, Clone)]
4pub struct EmptyNode;
5
6impl WorldInfoNode for EmptyNode {
7    fn content(&self) -> Result<String, crate::WorldInfoError> {
8        Ok(String::new())
9    }
10
11    fn name(&self) -> String {
12        "empty".to_string()
13    }
14
15    fn cloned(&self) -> Box<dyn WorldInfoNode + '_> {
16        Box::new(self.to_owned())
17    }
18}