3 ms·
This is quite an old version of rust[1]. I tried this a little while ago (but got frustrated trying to link it) [1] For example: * `u16` would now be: `const
by hornetblack 10y ago
This is quite an old version of rust[1]. I tried this a little while ago (but got frustrated trying to link it)
[1] For example:
* `u16` would now be: `const u16`
* `int` is no longer a type.
* `slice::as_ptr` is now a method, so using transmute to extract the pointer from a slice is probably not ideal.
* `core` is a crate that includes things like transmute so you don't need to manually include rust intrinsics etc.
- shmerl 10y agoYes, it's obviously somewhat outdated, since it's from 2013, which was before the first release.