pub enum IntError {
Floating,
InvalidSuffix,
InvalidOctalDigit,
NoDigits,
TooLarge,
}Expand description
Why a preprocessing number is not an integer constant.
IntError::Floating is not a diagnostic. It means the spelling belongs to the floating
path, and it is an error here so that the caller cannot forget to ask.
Variants§
Floating
This is a floating constant. Nothing is wrong with it.
InvalidSuffix
The characters after the digits are not a suffix.
InvalidOctalDigit
An 8 or a 9 in a constant that started with 0.
NoDigits
0x or 0b with no digits after it.
TooLarge
Larger than any integer type, or than the hundred and twenty eight bits the value is accumulated in.
Implementations§
Trait Implementations§
impl Copy for IntError
impl Eq for IntError
impl StructuralPartialEq for IntError
Auto Trait Implementations§
impl Freeze for IntError
impl RefUnwindSafe for IntError
impl Send for IntError
impl Sync for IntError
impl Unpin for IntError
impl UnsafeUnpin for IntError
impl UnwindSafe for IntError
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