Locate a kernel argument with the given key name. Returns the first parameter matching the given key, or `None` if not found. Key comparison treats dashes and underscores as equivalent.
(&'a self, key: &T)
| 148 | /// Returns the first parameter matching the given key, or `None` if not found. |
| 149 | /// Key comparison treats dashes and underscores as equivalent. |
| 150 | pub fn find<T: AsRef<[u8]> + ?Sized>(&'a self, key: &T) -> Option<Parameter<'a>> { |
| 151 | let key = ParameterKey(key.as_ref()); |
| 152 | self.iter().find(|p| p.key == key) |
| 153 | } |
| 154 | |
| 155 | /// Locate a kernel argument with the given key name. |
| 156 | /// |