Skip to content

der: use Cow for *Ref types #1795

Open
Open
@dishmaker

Description

@dishmaker

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions