[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...
Published at
2023-06-19 17:48:50Event JSON
{
"id": "355a7b1c433d9399b20dd562c3ee1e99711b6d2400ca81707014ad9739cbc80e",
"pubkey": "bdf8e6a9c859b03b22181316d0f52e886a65f134ab5502c7d7ee2659a988409a",
"created_at": 1687196930,
"kind": 1,
"tags": [
[
"mostr",
"https://snug.moe/notes/9g6pswkbct"
]
],
"content": "I'm really unsure of how to get over this issue of not being able to skip chars in the input of my parsers.\n\nEven if I make it take a Cow\u003c'a\u003e instead of a \u0026'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...",
"sig": "a1bd80b29a5ca70b25b95b2c3bf3d8a5dffe514af869c55b29e76013208a9c7403dc594b6956c7d9975f92c6e41e19e6738d62cfb9253bbf9183fab13a7d83f4"
}