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>)
OutOfBounds(u64)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ErrorType
impl RefUnwindSafe for ErrorType
impl Send for ErrorType
impl Sync for ErrorType
impl Unpin for ErrorType
impl UnwindSafe for ErrorType
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