Struct algebraics::mod_int::KnownPrime
source · [−]pub struct KnownPrime<T>(_);
Implementations
sourceimpl<T> KnownPrime<T>
impl<T> KnownPrime<T>
pub fn new_unsafe(prime: T) -> Self
pub fn unwrap(self) -> T
Trait Implementations
sourceimpl<T: Clone> Clone for KnownPrime<T>
impl<T: Clone> Clone for KnownPrime<T>
sourcefn clone(&self) -> KnownPrime<T>
fn clone(&self) -> KnownPrime<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 KnownPrime<T>
impl<T: Debug> Debug for KnownPrime<T>
sourceimpl<T: Default> Default for KnownPrime<T>
impl<T: Default> Default for KnownPrime<T>
sourcefn default() -> KnownPrime<T>
fn default() -> KnownPrime<T>
Returns the “default value” for a type. Read more
sourceimpl<T> Deref for KnownPrime<T>
impl<T> Deref for KnownPrime<T>
sourceimpl<T: Display> Display for KnownPrime<T>
impl<T: Display> Display for KnownPrime<T>
sourceimpl<T: Hash> Hash for KnownPrime<T>
impl<T: Hash> Hash for KnownPrime<T>
sourceimpl<T: Modulus<Value>, Value: Eq + Clone> Modulus<Value> for KnownPrime<T>
impl<T: Modulus<Value>, Value: Eq + Clone> Modulus<Value> for KnownPrime<T>
fn to_modulus(&self) -> Cow<'_, Value>
fn into_modulus(self) -> Value
sourceimpl<T: PartialEq> PartialEq<KnownPrime<T>> for KnownPrime<T>
impl<T: PartialEq> PartialEq<KnownPrime<T>> for KnownPrime<T>
sourcefn eq(&self, other: &KnownPrime<T>) -> bool
fn eq(&self, other: &KnownPrime<T>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &KnownPrime<T>) -> bool
fn ne(&self, other: &KnownPrime<T>) -> bool
This method tests for !=
.
sourceimpl<T: Modulus<Value>, Value: Integer + Clone> PrimePowerModulus<Value> for KnownPrime<T>
impl<T: Modulus<Value>, Value: Integer + Clone> PrimePowerModulus<Value> for KnownPrime<T>
fn base_and_exponent(&self) -> BaseAndExponent<Value>
sourceimpl<T: StaticModulus<Value>, Value: Integer + Clone> StaticModulus<Value> for KnownPrime<T>
impl<T: StaticModulus<Value>, Value: Integer + Clone> StaticModulus<Value> for KnownPrime<T>
fn get_modulus() -> Value
impl<T: Copy> Copy for KnownPrime<T>
impl<T: Eq> Eq for KnownPrime<T>
impl<T: OddModulus<Value>, Value: Integer + Clone> OddModulus<Value> for KnownPrime<T>
impl<T: Modulus<Value>, Value: Integer + Clone> PrimeModulus<Value> for KnownPrime<T>
impl<T> StructuralEq for KnownPrime<T>
impl<T> StructuralPartialEq for KnownPrime<T>
Auto Trait Implementations
impl<T> RefUnwindSafe for KnownPrime<T> where
T: RefUnwindSafe,
impl<T> Send for KnownPrime<T> where
T: Send,
impl<T> Sync for KnownPrime<T> where
T: Sync,
impl<T> Unpin for KnownPrime<T> where
T: Unpin,
impl<T> UnwindSafe for KnownPrime<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> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more