pub enum PrimeGenErr {
InputGreaterThanSizeMax(usize),
ValueGreaterThanSizeMax(usize, usize),
AimlessInput(usize),
TimeframeExhaustion,
}Expand description
Prime number generation error enumeration.
Variants§
InputGreaterThanSizeMax(usize)
Input is greater than target type maximal size. Holds input provided.
ValueGreaterThanSizeMax(usize, usize)
Computed value cannot be cast to target type. Holds input provided, 0, and value to be cast, 1.
AimlessInput(usize)
Aimless input for computation, like 1 for PrimeGenClass::Lim.
TimeframeExhaustion
Time limit exhaustion.
Trait Implementations§
Source§impl Clone for PrimeGenErr
impl Clone for PrimeGenErr
Source§fn clone(&self) -> PrimeGenErr
fn clone(&self) -> PrimeGenErr
Returns a duplicate 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 PrimeGenErr
impl Debug for PrimeGenErr
Source§impl PartialEq for PrimeGenErr
impl PartialEq for PrimeGenErr
impl StructuralPartialEq for PrimeGenErr
Auto Trait Implementations§
impl Freeze for PrimeGenErr
impl RefUnwindSafe for PrimeGenErr
impl Send for PrimeGenErr
impl Sync for PrimeGenErr
impl Unpin for PrimeGenErr
impl UnsafeUnpin for PrimeGenErr
impl UnwindSafe for PrimeGenErr
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