Enum prime_data::error::ErrorType[][src]

pub enum ErrorType {
    NotEnoughData(RangeInclusive<u64>),
    OutOfBounds(u64),
}
Expand description
  • NotEnoughData - This error happens when someone tries to access some range of numbers that PrimeData does not have information about. The range it stores is the difference between the range given and the data’s range.

  • OutOfBounds - Same concept, except it doesn’t need to be some range. If you have some set of values {1, 3, 4} and try to access the number 2, it’s in the range but not in the set’s bounds.

Variants

NotEnoughData(RangeInclusive<u64>)

Tuple Fields of NotEnoughData

0: RangeInclusive<u64>
OutOfBounds(u64)

Tuple Fields of OutOfBounds

0: u64

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.