Following #1778 (comment),
we need to investigate why Cow<*Ref> does not work.
One major issue is that Clone is implemented on Ref types.
|
#[derive(Copy, Clone, Eq, PartialEq, PartialOrd, Ord)] |
|
pub struct Ia5StringRef<'a> { |
|
/// Inner value |
|
inner: StrRef<'a>, |
which collides with (if i remember correctly):
https://doc.rust-lang.org/std/borrow/trait.ToOwned.html#impl-ToOwned-for-T
Following #1778 (comment),
we need to investigate why Cow<*Ref> does not work.
One major issue is that
Cloneis implemented onReftypes.formats/der/src/asn1/ia5_string.rs
Lines 37 to 40 in 217b6ef
which collides with (if i remember correctly):
https://doc.rust-lang.org/std/borrow/trait.ToOwned.html#impl-ToOwned-for-T