From c2cecdf85facf6ce6e2f8b68be0e27acd6421d1e Mon Sep 17 00:00:00 2001 From: janis Date: Wed, 17 Sep 2025 14:04:37 +0200 Subject: [PATCH] copy+clone for handle --- src/tree.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/tree.rs b/src/tree.rs index d936cfd..10021db 100644 --- a/src/tree.rs +++ b/src/tree.rs @@ -79,6 +79,13 @@ pub(crate) struct Handle { _marker: PhantomData, } +impl Copy for Handle {} +impl Clone for Handle { + fn clone(&self) -> Self { + *self + } +} + impl<'a, K: 'a, V: 'a> Copy for NodeRef, K, V> {} impl<'a, K: 'a, V: 'a> Clone for NodeRef, K, V> { fn clone(&self) -> Self {