I started reading about DSTs and stumbled upon the slice-dst crate. With it it should be possible to implement Iri (and IriRef) as DSTs right now. The caveat is that we can't use a Vec for the Buf types but I wrote an example that demonstrates how a mutable buffer can be implemented with slice-dst (cf. CAD97/pointer-utils#70). Actually, most changes would be to re-write the replace function.
I started reading about DSTs and stumbled upon the
slice-dstcrate. With it it should be possible to implementIri(andIriRef) as DSTs right now. The caveat is that we can't use aVecfor theBuftypes but I wrote an example that demonstrates how a mutable buffer can be implemented withslice-dst(cf. CAD97/pointer-utils#70). Actually, most changes would be to re-write thereplacefunction.