about summary refs log tree commit diff
path: root/src/libstd/sys/unix/stack_overflow.rs
diff options
context:
space:
mode:
authorSimon Sapin <simon.sapin@exyr.org>2019-05-07 13:32:07 +0200
committerSimon Sapin <simon.sapin@exyr.org>2019-05-07 13:57:01 +0200
commitd5e819015f550bedb27bc287f96f3937bb831cd5 (patch)
tree27167aae1efbc95c7ea692f6f32f90d3a98cc408 /src/libstd/sys/unix/stack_overflow.rs
parenta19cf18c7dbbcc46dddea81df3a4cee1735c2349 (diff)
downloadrust-d5e819015f550bedb27bc287f96f3937bb831cd5.tar.gz
rust-d5e819015f550bedb27bc287f96f3937bb831cd5.zip
Add a `cast` method to raw pointers.
This is similar to `NonNull::cast`.

Compared to the `as` operator (which has a wide range of meanings
depending on the input and output types), a call to this method:

* Can only go from a raw pointer to a raw pointer
* Cannot change the pointer’s `const`ness

… even when the pointed types are inferred based on context.
Diffstat (limited to 'src/libstd/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions