Lines Matching refs:u32
84 pub fn parse_mode(s: &str) -> Result<u32, ParseError> { in parse_mode() argument
86 let m = match u32::from_str_radix(s, 8) { in parse_mode()
133 pub fn parse_mtu(s: &str, family: i32) -> Result<u32, ParseError> { in parse_mtu() argument
144 if mtu > u32::MAX as u64 { in parse_mtu()
148 let mtu: u32 = mtu as u32; in parse_mtu()
213 Ok(integer * factor + (fraction * factor) / (10u64.pow(fraction.to_string().len() as u32))) in parse_size()
252 pub fn parse_range(s: &str) -> Result<(u32, u32), ParseError> { in parse_range() argument
258 let ret = match s.parse::<u32>() { in parse_range()
272 let l = match l.parse::<u32>() { in parse_range()
279 let r = match r.parse::<u32>() { in parse_range()
384 pub fn parse_ip_prefix_length(s: &str) -> Result<u32, ParseError> { in parse_ip_prefix_length() argument
385 let len = match s.parse::<u32>() { in parse_ip_prefix_length()
671 ret += integer * factor + (frac * factor) / (10u64.pow(frac.to_string().len() as u32)); in parse_sec()