Home
last modified time | relevance | path

Searched refs:unit (Results 1 – 2 of 2) sorted by relevance

/DADK/dadk-config/src/rootfs/utils/
H A Dsize.rs48 /// Parses a size string with optional unit suffix (K, M, G) into a usize value.
51 /// number or a number followed by a unit suffix (K for kilobytes, M for megabytes,
56 /// numeric string or a numeric string followed by a unit ('K', 'M', 'G').
61 /// - `None` if the input string is invalid or contains an unsupported unit. in parse_size_from_string()
69 let unit = chars.next()?; in parse_size_from_string()
73 match unit.to_ascii_uppercase() { in parse_size_from_string()
65 let unit = chars.next()?; parse_size_from_string() localVariable
H A Dsize.rs69 let unit = chars.next()?; in parse_size_from_string() localVariable
73 match unit.to_ascii_uppercase() { in parse_size_from_string()