What is Nostr?
[yaseenist] Julia :verified_trans: /
npub1hhu…h49a
2023-06-19 17:48:50

[yaseenist] Julia :verified_trans: on Nostr: I'm really unsure of how to get over this issue of not being able to skip chars in ...

I'm really unsure of how to get over this issue of not being able to skip chars in the input of my parsers.

Even if I make it take a Cow<'a> instead of a &'a str, any string slices I make past that point will have to be owned, because I'd have to borrow them from something that lives longer than the structure they get stored in, which a value owned by the same structure cannot provide without pinning, which seems overkill for this usecase...
Author Public Key
npub1hhuwd2wgtxcrkgsczvtdpafw3p4xtuf54d2s937hacn9n2vggzdqdph49a