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