this is a refactor, though—originally, the issue was that the nodes that needed substring references also sometimes owned the original strings, so i either needed a, like, MaybeOwns enum or for everything to be an Rc
Comments
Log in with your Bluesky account to leave a comment
they're built specifically for this usecase of "i want something that's either an owned T or a reference to a T", so it seems like they do exactly what you need, unless im misunderstanding something
Comments