Locate the value of the kernel argument with the given key name. Returns the first value matching the given key, or `None` if not found. Key comparison treats dashes and underscores as equivalent.
(&'a self, key: &T)
| 188 | /// Returns the first value matching the given key, or `None` if not found. |
| 189 | /// Key comparison treats dashes and underscores as equivalent. |
| 190 | pub fn value_of<T: AsRef<[u8]> + ?Sized>(&'a self, key: &T) -> Option<&'a [u8]> { |
| 191 | self.find(&key).and_then(|p| p.value) |
| 192 | } |
| 193 | |
| 194 | /// Find the value of the kernel argument with the provided name, which must be present. |
| 195 | /// |