(pid: Option<Self>)
| 89 | /// Converts an `Option<Pid>` into a `RawPid`. |
| 90 | #[inline] |
| 91 | pub const fn as_raw(pid: Option<Self>) -> RawPid { |
| 92 | match pid { |
| 93 | Some(pid) => pid.0.get(), |
| 94 | None => 0, |
| 95 | } |
| 96 | } |
| 97 | |
| 98 | /// Test whether this pid represents the init process ([`Pid::INIT`]). |
| 99 | #[inline] |