Parse a memory size string into bytes (for compatibility with existing code)
(s: &str)
| 265 | |
| 266 | /// Parse a memory size string into bytes (for compatibility with existing code) |
| 267 | pub fn parse_memory_size(s: &str) -> Result<u64, MemorySizeError> { |
| 268 | MemorySize::parse(s).map(|size| size.bytes()) |
| 269 | } |
| 270 | |
| 271 | /// Generic serde support for using memory size parsing with field attributes |
| 272 | /// |