I don't yet know enough to be able to determine whether this would break invariants that must be upheld.
Would it be possible & feasible to do this so that RcK & ArcK impl Clone?
I have a type (Value) and would like to derive/impl Clone for it:
pub enum Value<P: archery::SharedPointerKind> {
Map(Map<P>),
}
#[derive(Debug, Clone)]
pub struct Map<P: SharedPointerKind>(pub(crate) RawMap<P>);
pub type RawMap<P> = rpds::HashTrieMap<Value<P>, Value<P>, P>;
To do so and actually make use of it like so, I have to add + Clone to all of my P: archery::SharedPointerKinds which results in an error because RcK & ArcK are not Clone.
Thank you for the excellent library!
I don't yet know enough to be able to determine whether this would break invariants that must be upheld.
Would it be possible & feasible to do this so that
RcK&ArcKimplClone?I have a type (
Value) and would like to derive/implClonefor it:To do so and actually make use of it like so, I have to add
+ Cloneto all of myP: archery::SharedPointerKinds which results in an error becauseRcK&ArcKare notClone.Thank you for the excellent library!