This commit is contained in:
2025-11-20 23:23:01 +01:00
parent b57fffe9b7
commit 0cefbaa223
2 changed files with 14 additions and 1 deletions
+13
View File
@@ -14,3 +14,16 @@ pub enum Node {
String(Arc<dyn Fn() -> String>),
Component(component::Component),
}
impl std::fmt::Debug for Node {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(
f,
"{}",
match self {
Self::Component(_) => format!("Component"),
Self::String(v) => format!("String({})", v()),
}
)
}
}