Rust in the Linux kernel (Google security blog)
Rust in the Linux kernel (Google security blog)
Posted Apr 15, 2021 21:10 UTC (Thu) by mathstuf (subscriber, #69389)In reply to: Rust in the Linux kernel (Google security blog) by mss
Parent article: Rust in the Linux kernel (Google security blog)
> Also, sometimes you also want to act differently on a NULL pointer, using it for example for making some of the parameters optional.
As I said elsewhere in this thread, you *really* want `std::optional<T&>`, but that has an awful functional spelling or T*.