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)
| 120 | /// Returns the first parameter matching the given key, or `None` if not found. |
| 121 | /// Key comparison treats dashes and underscores as equivalent. |
| 122 | pub fn find<T: AsRef<str> + ?Sized>(&'a self, key: &T) -> Option<Parameter<'a>> { |
| 123 | let key = ParameterKey::from(key.as_ref()); |
| 124 | self.iter().find(|p| p.key() == key) |
| 125 | } |
| 126 | |
| 127 | /// Find all kernel arguments starting with the given UTF-8 prefix. |
| 128 | /// |