deep_causality_ast/const_tree/debug.rs
1/*
2 * SPDX-License-Identifier: MIT
3 * Copyright (c) "2025" . The DeepCausality Authors and Contributors. All Rights Reserved.
4 */
5
6use crate::ConstTree;
7use std::fmt;
8
9impl<T: fmt::Debug> fmt::Debug for ConstTree<T> {
10 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
11 f.debug_struct("ConstTree")
12 .field("value", &self.node.value)
13 .field("children_count", &self.node.children.len())
14 .finish()
15 }
16}