[][src]Enum yolol_number::FromStrError

pub enum FromStrError {
    InputVerificationFailure,
    InvalidSignMatched,
    MainDigitsParseError,
    NoMainDigits,
    DecimalSliceLenLogicError,
    DecimalShiftPowLogicError,
    ShiftConversionFailure,
    DecimalDigitsParseError,
    FromSplitCreationFailure,
}

Variants

InputVerificationFailure

The input that failed regex verification.

InvalidSignMatched

The regex matched sign didn't match anything expected.

MainDigitsParseError

The regex matched main digits (left of decimal) failed to parse into the YololNumber backing type.

NoMainDigits

No main digits were matched by the regex.

DecimalSliceLenLogicError

A logic error occurred in calculating how many decimals to extract from the slice of their characters.

DecimalShiftPowLogicError

A logic error occurred in calculating the power to shift the decimals to get the correct output value.

ShiftConversionFailure

The value to shift the decimals by to get the correct value failed to be converted to the YololNumber backing type.

DecimalDigitsParseError

The value-correct decimal characters failed to be parsed into the YololNumber backing type.

FromSplitCreationFailure

There was a failure in turning the split number values into one YololNumber.

Trait Implementations

impl Clone for FromStrError[src]

impl Copy for FromStrError[src]

impl Debug for FromStrError[src]

impl Display for FromStrError[src]

impl Error for FromStrError[src]

impl From<FromStrError> for String[src]

impl PartialEq<FromStrError> for FromStrError[src]

impl StructuralPartialEq for FromStrError[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.