Update intrinsics documentation

This commit is contained in:
Sofia 2025-07-28 01:37:54 +03:00
parent cea756b2ad
commit c9909dc651

View File

@ -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`.