strip_ble_key

Function strip_ble_key 

Source
fn strip_ble_key<'a>(line: &'a str, key: &str) -> Option<&'a str>
Expand description

Strips the key (if it matches) plus the following whitespace from a single line in a “Type #1 Boot Loader Specification Entry” file.

The line needs to start with the name of the key, followed by at least one whitespace character. The whitespace is consumed. If the current line doesn’t match the key, None is returned.