Update intrinsics documentation
This commit is contained in:
parent
cea756b2ad
commit
c9909dc651
@ -17,6 +17,14 @@ Simply returns the size of type `T` in bits.
|
||||
i32::sizeof(); // Returns 32
|
||||
```
|
||||
|
||||
#### `<T>::null() -> *T`
|
||||
|
||||
Returns a null-pointer of type `T`.
|
||||
|
||||
```rust
|
||||
i32::null(); // Returns *i32 (null-ptr)
|
||||
```
|
||||
|
||||
#### `<T>::alloca(size: u64) -> *T`
|
||||
|
||||
Allocates `T::sizeof() * size` bits and returns a pointer to `T`.
|
||||
|
Loading…
Reference in New Issue
Block a user