You can `impl From<&T>` though. See https://is.gd/GZBs6U for an example.
-
-
-
Functions that leave `self` unmodified and create some derived value are named `to_`, not `into_`. See https://aturon.github.io/style/naming.html#conversions …
-
ahhhhhhhhhh okay, that makes more sense now, thank you very much
-
Incidentally, if you're doing what I imagine you're doing then you can actually do it as `fn as_bytes(&'a self) -> &'a [u8]`
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.