Re:Rusty Ownership and the Lifecycle’s Stone
by loeg on Sunday November 27, 2022 @02:01PM
(#33765565)
Yes, exactly. I was using this for zero-copy serialization into a buffer. At the time, I don’t believe that API had been stabilized yet.
This refers to[1]
used as but you can see that the inner logic is just a bit of pointer twiddling[2] [1]: https://doc.rust-lang.org/std/primitive.slice.html#method.sp...[2]: https://doc.rust-lang.org/src/core/slice/mod.rs.html#1641-16...