@hdevalence Yes, you are missing that the purpose of `Into` is to replace the value of the old type with the new value, not create a copy.
-
-
Replying to @BRIAN_____ @hdevalence
You can `impl From<&T>` though. See https://is.gd/GZBs6U for an example.
2 replies 0 retweets 0 likes -
Replying to @BRIAN_____ @hdevalence
Functions that leave `self` unmodified and create some derived value are named `to_`, not `into_`. See https://aturon.github.io/style/naming.html#conversions …
2 replies 2 retweets 5 likes -
Replying to @BRIAN_____
ahhhhhhhhhh okay, that makes more sense now, thank you very much
1 reply 0 retweets 0 likes
Replying to @hdevalence
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]`
8:08 PM - 19 Feb 2017
0 replies
0 retweets
1 like
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.