1use std::str::FromStr;
2
3pub(crate) fn get_value<T>(line: &str) -> Option<T>
4where
5 T: FromStr,
6{
7 match line.split('=').nth(1) {
8 Some(value) => match value.split(' ').next() {
9 Some(value) => value.parse().ok(),
10 None => None,
11 },
12 None => None,
13 }
14}