#[non_exhaustive]
pub enum IntErrorKind {
Empty,
InvalidDigit,
Overflow,
Underflow,
}
🔬 This is a nightly-only experimental API. (int_error_matching
#22639)
it can be useful to match errors when making error messages for integer parsing
Enum to store the various types of errors that can cause parsing an integer to fail.
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
🔬 This is a nightly-only experimental API. (int_error_matching
#22639)
it can be useful to match errors when making error messages for integer parsing
Value being parsed is empty.
Among other causes, this variant will be constructed when parsing an empty string.
🔬 This is a nightly-only experimental API. (int_error_matching
#22639)
it can be useful to match errors when making error messages for integer parsing
Contains an invalid digit.
Among other causes, this variant will be constructed when parsing a string that
contains a letter.
🔬 This is a nightly-only experimental API. (int_error_matching
#22639)
it can be useful to match errors when making error messages for integer parsing
Integer is too large to store in target integer type.
🔬 This is a nightly-only experimental API. (int_error_matching
#22639)
it can be useful to match errors when making error messages for integer parsing
Integer is too small to store in target integer type.
This method tests for self
and other
values to be equal, and is used by ==
. Read more
#[must_use]
fn ne(&self, other: &Rhs) -> bool
| 1.0.0 [src] |
This method tests for !=
.
Performs copy-assignment from source
. Read more
Formats the value using the given formatter. Read more
🔬 This is a nightly-only experimental API. (
try_from
#33417)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (
try_from
#33417)
🔬 This is a nightly-only experimental API. (
try_from
#33417)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (
try_from
#33417)
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (get_type_id
#27745)
this method will likely be replaced by an associated static