Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Announcing Rust 1.15.1. Parent comment
> why does it need `unsafe`?
slice::from_raw_parts_mut is an unsafe function because it lets you conjure a slice from thin air; there's no checking of it at all.
This function is used because it's the most straightforward way of accomplishing the task.
There are no comments on this comment yet.
> why does it need `unsafe`?
slice::from_raw_parts_mut is an unsafe function because it lets you conjure a slice from thin air; there's no checking of it at all.
This function is used because it's the most straightforward way of accomplishing the task.