(code: u16)
| 1004 | /// Converts the given `code` to an error number in `Errno`'s representation. |
| 1005 | #[inline] |
| 1006 | pub const fn from_code(code: u16) -> Option<Self> { |
| 1007 | match NonZeroU16::new(code) { |
| 1008 | Some(code) => Some(Errno(code)), |
| 1009 | None => None, |
| 1010 | } |
| 1011 | } |
| 1012 | |
| 1013 | /// Converts this `errno` into a primitive error code. |
| 1014 | #[inline] |