-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Custom derive of IntoOwnedInner
(or better solution)
#9
Comments
Okay, thinking about it more, instead of what we're doing, the newtypes should just hold The drawback is that this means requests can't be cloned or stored in any way, which one may want to do if they send a particular request frequently :/ I guess we could try E: Actually, this won't quite work :/ |
After playing in the Playground, |
Well, one thing is for sure: we can reduce a lot of lifetime noise by using |
It's really annoying owning these types that are
Cow
all the way down, need to reduce verbosity, in principle this should be custom derivable for compound types. We also may want to reduce incidence of newtypes done withsnapd_str_newtype
and restrict them solely to types are used for input, or that we want to implement a convenience method on, and just use rawCow
for everything else.The text was updated successfully, but these errors were encountered: