Skip to main content

uevent_find

Function uevent_find 

Source
pub fn uevent_find<'a>(uevent: &'a str, key: &'a str) -> Option<&'a str>
Expand description

Searches newline-delimited KEY=VALUE text for a key.

Lines without = are ignored, and the first exact key match is returned. The borrowed value contains everything after the first =, including any additional separators.