#[repr(C)]pub enum ParseIntError {
Empty = 0,
InvalidDigit = 1,
PosOverflow = 2,
NegOverflow = 3,
Zero = 4,
}Expand description
C-compatible enum mirroring core::num::ParseIntError internals.
core::num::ParseIntError is a 1-byte enum with variants matching IntErrorKind.
We mirror them here for FFI compatibility.
Variants§
Empty = 0
Input string was empty.
InvalidDigit = 1
Input contained an invalid digit.
PosOverflow = 2
Input overflowed the target integer type (positive).
NegOverflow = 3
Input overflowed the target integer type (negative).
Zero = 4
Input was zero but zero is not allowed (rarely used).
Implementations§
Source§impl ParseIntError
impl ParseIntError
Sourcepub fn to_std(&self) -> ParseIntError
pub fn to_std(&self) -> ParseIntError
Reconstruct a core::num::ParseIntError from our C-compatible variant.
Trait Implementations§
Source§impl Clone for ParseIntError
impl Clone for ParseIntError
Source§fn clone(&self) -> ParseIntError
fn clone(&self) -> ParseIntError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ParseIntError
impl Debug for ParseIntError
Source§impl Display for ParseIntError
impl Display for ParseIntError
Source§impl<'a> From<ParseIntError> for CssColorParseError<'a>
impl<'a> From<ParseIntError> for CssColorParseError<'a>
Source§fn from(e: ParseIntError) -> Self
fn from(e: ParseIntError) -> Self
Converts to this type from the input type.
Source§impl From<ParseIntError> for ParseIntError
impl From<ParseIntError> for ParseIntError
Source§fn from(e: ParseIntError) -> Self
fn from(e: ParseIntError) -> Self
Converts to this type from the input type.
Source§impl Hash for ParseIntError
impl Hash for ParseIntError
Source§impl Ord for ParseIntError
impl Ord for ParseIntError
Source§fn cmp(&self, other: &ParseIntError) -> Ordering
fn cmp(&self, other: &ParseIntError) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ParseIntError
impl PartialEq for ParseIntError
Source§fn eq(&self, other: &ParseIntError) -> bool
fn eq(&self, other: &ParseIntError) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for ParseIntError
impl PartialOrd for ParseIntError
impl Copy for ParseIntError
impl Eq for ParseIntError
impl StructuralPartialEq for ParseIntError
Auto Trait Implementations§
impl Freeze for ParseIntError
impl RefUnwindSafe for ParseIntError
impl Send for ParseIntError
impl Sync for ParseIntError
impl Unpin for ParseIntError
impl UnsafeUnpin for ParseIntError
impl UnwindSafe for ParseIntError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more