pub enum ParseNumberError {
HexOrByte(ParseIntError),
Other(ParseFloatError),
}Expand description
An enum representing errors that can occur during [Number::parse] stopping it from
parsing the number, they should only be out-of-range errors and thus should be
displayed for the user asking them to change the number.
Variants§
HexOrByte(ParseIntError)
Hexadecimal and binary numbers are always integers.
Other(ParseFloatError)
Other numbers in Roblox are stored as floats.
Trait Implementations§
Source§impl Clone for ParseNumberError
impl Clone for ParseNumberError
Source§fn clone(&self) -> ParseNumberError
fn clone(&self) -> ParseNumberError
Returns a copy of the value. Read more
1.0.0 · 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 ParseNumberError
impl Debug for ParseNumberError
Source§impl PartialEq for ParseNumberError
impl PartialEq for ParseNumberError
impl Eq for ParseNumberError
impl StructuralPartialEq for ParseNumberError
Auto Trait Implementations§
impl Freeze for ParseNumberError
impl RefUnwindSafe for ParseNumberError
impl Send for ParseNumberError
impl Sync for ParseNumberError
impl Unpin for ParseNumberError
impl UnwindSafe for ParseNumberError
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