linebender / parley

Rich text layout library
Apache License 2.0
228 stars 28 forks source link

CoWify style types #128

Closed nicoburns closed 1 month ago

nicoburns commented 1 month ago

This:

This isn't ideal from an API point of view, but does at least allow PlainEditor to be stored within a struct.

It would be an option to leave the lifetime parameter in PlainEditor and make uses who want to store it in a struct specify PlainEditor<'static> themselves. I have not done so because I don't think there's much use for the borrowed editor outside of toy examples.