Function std::num::strconv::from_str_bytes_common[src]

pub fn from_str_bytes_common<T: NumCast + Zero + One + PartialEq + PartialOrd + Div<T, T> + Mul<T, T> + Sub<T, T> + Neg<T> + Add<T, T> + NumStrConv + Clone>(buf: &[u8], radix: uint, negative: bool, fractional: bool, special: bool, exponent: ExponentFormat, empty_zero: bool, ignore_underscores: bool) -> Option<T>

Parses a byte slice as a number. This is meant to be a common base implementation for all numeric string conversion functions like from_str() or from_str_radix().

Arguments

Return value

Returns Some(n) if buf parses to a number n without overflowing, and None otherwise, depending on the constraints set by the remaining arguments.

Failure