mirror of
https://github.com/RGBCube/cstree
synced 2025-07-27 09:07:44 +00:00
Derive Debug
for the default TokenInterner
(#20)
This commit is contained in:
parent
8642b8af77
commit
773f65f1b4
2 changed files with 4 additions and 0 deletions
|
@ -4,6 +4,7 @@ use fxhash::FxBuildHasher;
|
|||
use lasso::{Capacity, Interner, IntoReader, IntoReaderAndResolver, IntoResolver, Reader, Resolver, Rodeo, Spur};
|
||||
|
||||
/// The default [`Interner`] used to deduplicate green token strings.
|
||||
#[derive(Debug)]
|
||||
pub struct TokenInterner {
|
||||
rodeo: Rodeo<Spur, FxBuildHasher>,
|
||||
}
|
||||
|
|
|
@ -142,4 +142,7 @@ fn assert_debug_display() {
|
|||
f::<SyntaxElement<(), lasso::Rodeo>>();
|
||||
f::<SyntaxElementRef<'static, (), lasso::Rodeo>>();
|
||||
f::<cstree::NodeOrToken<String, u128>>();
|
||||
|
||||
fn dbg<T: fmt::Debug>() {}
|
||||
dbg::<GreenNodeBuilder<'static, 'static>>();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue