Trait LucasBase

Source
pub trait LucasBase {
    // Required method
    fn generate<T: Integer>(
        &self,
        n: &Odd<T>,
    ) -> Result<(Word, Word, bool), Primality>;
}
Expand description

A method for selecting the base (P, Q) for the Lucas primality test.

Required Methods§

Source

fn generate<T: Integer>( &self, n: &Odd<T>, ) -> Result<(Word, Word, bool), Primality>

Given an odd integer, returns Ok((P, abs(Q), is_negative(Q))) on success, or Err(Primality) if the primality for the given integer was discovered during the search for a base.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§