Trait swiss_army_knife::strings::parse_number::ParseNumber[][src]

pub trait ParseNumber: Sized {
Show methods fn parse_hexadecimal_number_lower_case_fixed_width(
        bytes: &[u8],
        fixed_width: usize
    ) -> Result<Self, ParseNumberError> { ... }
fn parse_hexadecimal_number_lower_case_with_0x_prefix_fixed_width(
        bytes: &[u8],
        fixed_width: usize
    ) -> Result<Self, ParseNumberError> { ... }
fn parse_octal_number_fixed_width(
        bytes: &[u8],
        fixed_width: usize
    ) -> Result<Self, ParseNumberError> { ... }
fn parse_binary_number_case_with_0b_prefix(
        bytes: &[u8]
    ) -> Result<Self, ParseNumberError> { ... }
fn parse_octal_number_case_with_0o_prefix(
        bytes: &[u8]
    ) -> Result<Self, ParseNumberError> { ... }
fn parse_octal_number_case_with_0_prefix(
        bytes: &[u8]
    ) -> Result<Self, ParseNumberError> { ... }
fn parse_hexadecimal_number_lower_case_with_0x_prefix(
        bytes: &[u8]
    ) -> Result<Self, ParseNumberError> { ... }
fn parse_hexadecimal_number_upper_case_with_0x_prefix(
        bytes: &[u8]
    ) -> Result<Self, ParseNumberError> { ... }
fn parse_hexadecimal_number_upper_or_lower_case_with_0x_prefix(
        bytes: &[u8]
    ) -> Result<Self, ParseNumberError> { ... }
fn parse_octal_number(bytes: &[u8]) -> Result<Self, ParseNumberError> { ... }
fn parse_decimal_number(bytes: &[u8]) -> Result<Self, ParseNumberError> { ... }
fn parse_hexadecimal_number_lower_case(
        bytes: &[u8]
    ) -> Result<Self, ParseNumberError> { ... }
fn parse_hexadecimal_number_upper_case(
        bytes: &[u8]
    ) -> Result<Self, ParseNumberError> { ... }
fn parse_hexadecimal_number_upper_or_lower_case(
        bytes: &[u8]
    ) -> Result<Self, ParseNumberError> { ... }
fn parse_number_known_case(
        bytes: &[u8],
        radix: Radix,
        non_numeric_digit_case: NonNumericDigitCase
    ) -> Result<Self, ParseNumberError> { ... }
fn parse_number_upper_or_lower_case(
        bytes: &[u8],
        radix: Radix
    ) -> Result<Self, ParseNumberError> { ... }
}
Expand description

Parse a number from bytes.

Provided methods

Parses a lower-case hexadecimal number which should be of fixed width.

Parses a lower-case hexadecimal number which should be of fixed width and should start 0x.

Parses an octal number.

Parses an octal number which should start ‘0o’.

Parses an octal number which should start ‘0o’.

Parses an octal number which should start ‘0’.

Parses a lower-case hexadecimal number which should start ‘0x’.

Parses an upper-case hexadecimal number which should start ‘0x’.

Parses a hexadecimal number with any mixture of alphabet casing which should start ‘0x’.

Parses an octal number.

Parses a decimal number.

Parses a lower-case hexadecimal number.

Parses an upper-case hexadecimal number.

Parses a hexadecimal number with any mixture of alphabet casing.

Parses a number with a known (upper or lower) case or returns an error.

Parses a number with any mixture of alphabet casing or returns an error.

Implementations on Foreign Types

Implementors