Struct facto::LucasCertificateElement
source · [−]pub struct LucasCertificateElement<T> {
pub n: T,
pub base: T,
pub unique_prime_divisors: Vec<T>,
}Expand description
Element of the lucas certificate tree, representing one number
Fields
n: TThe factor being certified to be prime
base: TThe base for which the lucas primality test returns a prime result
unique_prime_divisors: Vec<T>The unique divisors of n - 1
Trait Implementations
sourceimpl<T: Clone> Clone for LucasCertificateElement<T>
impl<T: Clone> Clone for LucasCertificateElement<T>
sourcefn clone(&self) -> LucasCertificateElement<T>
fn clone(&self) -> LucasCertificateElement<T>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl<T: Debug> Debug for LucasCertificateElement<T>
impl<T: Debug> Debug for LucasCertificateElement<T>
sourceimpl<T: Default> Default for LucasCertificateElement<T>
impl<T: Default> Default for LucasCertificateElement<T>
sourcefn default() -> LucasCertificateElement<T>
fn default() -> LucasCertificateElement<T>
Returns the “default value” for a type. Read more
sourceimpl<T> From<LucasCertificateElement<T>> for LucasCertificate<T>
impl<T> From<LucasCertificateElement<T>> for LucasCertificate<T>
sourcefn from(x: LucasCertificateElement<T>) -> Self
fn from(x: LucasCertificateElement<T>) -> Self
Converts to this type from the input type.
sourceimpl<T: PartialEq> PartialEq<LucasCertificateElement<T>> for LucasCertificateElement<T>
impl<T: PartialEq> PartialEq<LucasCertificateElement<T>> for LucasCertificateElement<T>
sourcefn eq(&self, other: &LucasCertificateElement<T>) -> bool
fn eq(&self, other: &LucasCertificateElement<T>) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &LucasCertificateElement<T>) -> bool
fn ne(&self, other: &LucasCertificateElement<T>) -> bool
This method tests for !=.
impl<T> StructuralPartialEq for LucasCertificateElement<T>
Auto Trait Implementations
impl<T> RefUnwindSafe for LucasCertificateElement<T> where
T: RefUnwindSafe,
impl<T> Send for LucasCertificateElement<T> where
T: Send,
impl<T> Sync for LucasCertificateElement<T> where
T: Sync,
impl<T> Unpin for LucasCertificateElement<T> where
T: Unpin,
impl<T> UnwindSafe for LucasCertificateElement<T> where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> CheckedAs for T
impl<T> CheckedAs for T
sourcefn checked_as<Dst>(self) -> Option<Dst> where
T: CheckedCast<Dst>,
fn checked_as<Dst>(self) -> Option<Dst> where
T: CheckedCast<Dst>,
Casts the value.
sourceimpl<Src, Dst> CheckedCastFrom<Src> for Dst where
Src: CheckedCast<Dst>,
impl<Src, Dst> CheckedCastFrom<Src> for Dst where
Src: CheckedCast<Dst>,
sourcefn checked_cast_from(src: Src) -> Option<Dst>
fn checked_cast_from(src: Src) -> Option<Dst>
Casts the value.
sourceimpl<T> OverflowingAs for T
impl<T> OverflowingAs for T
sourcefn overflowing_as<Dst>(self) -> (Dst, bool) where
T: OverflowingCast<Dst>,
fn overflowing_as<Dst>(self) -> (Dst, bool) where
T: OverflowingCast<Dst>,
Casts the value.
sourceimpl<Src, Dst> OverflowingCastFrom<Src> for Dst where
Src: OverflowingCast<Dst>,
impl<Src, Dst> OverflowingCastFrom<Src> for Dst where
Src: OverflowingCast<Dst>,
sourcefn overflowing_cast_from(src: Src) -> (Dst, bool)
fn overflowing_cast_from(src: Src) -> (Dst, bool)
OverflowingCasts the value.
sourceimpl<T> SaturatingAs for T
impl<T> SaturatingAs for T
sourcefn saturating_as<Dst>(self) -> Dst where
T: SaturatingCast<Dst>,
fn saturating_as<Dst>(self) -> Dst where
T: SaturatingCast<Dst>,
Casts the value.
sourceimpl<Src, Dst> SaturatingCastFrom<Src> for Dst where
Src: SaturatingCast<Dst>,
impl<Src, Dst> SaturatingCastFrom<Src> for Dst where
Src: SaturatingCast<Dst>,
sourcefn saturating_cast_from(src: Src) -> Dst
fn saturating_cast_from(src: Src) -> Dst
Casts the value.
sourceimpl<T> UnwrappedAs for T
impl<T> UnwrappedAs for T
sourcefn unwrapped_as<Dst>(self) -> Dst where
T: UnwrappedCast<Dst>,
fn unwrapped_as<Dst>(self) -> Dst where
T: UnwrappedCast<Dst>,
Casts the value.
sourceimpl<Src, Dst> UnwrappedCastFrom<Src> for Dst where
Src: UnwrappedCast<Dst>,
impl<Src, Dst> UnwrappedCastFrom<Src> for Dst where
Src: UnwrappedCast<Dst>,
sourcefn unwrapped_cast_from(src: Src) -> Dst
fn unwrapped_cast_from(src: Src) -> Dst
UnwrappedCasts the value.
sourceimpl<T> WrappingAs for T
impl<T> WrappingAs for T
sourcefn wrapping_as<Dst>(self) -> Dst where
T: WrappingCast<Dst>,
fn wrapping_as<Dst>(self) -> Dst where
T: WrappingCast<Dst>,
Casts the value.
sourceimpl<Src, Dst> WrappingCastFrom<Src> for Dst where
Src: WrappingCast<Dst>,
impl<Src, Dst> WrappingCastFrom<Src> for Dst where
Src: WrappingCast<Dst>,
sourcefn wrapping_cast_from(src: Src) -> Dst
fn wrapping_cast_from(src: Src) -> Dst
WrappingCasts the value.