Skip to content

Align IString/AttrValue with Cow of element #3524

Open
@ctron

Description

@ctron

It is possible to set the value of an element using <@{value} />. This seems to be of the type Cow<'static, str>.

However, there also seems to be no IntoPropValue for various string types to Cow<'static, str>, which makes dealing with it a bit cumbersome.

On the other hand AttrValue seems to have solved this just fine.

Maybe a way to deal with this would be to use IString or simply AttrValue for this use case as well. Maybe support Cow<static, str>` would also make sense.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions