pub enum Natural {
Zero,
Nonzero(Composite),
}Expand description
Variants§
Implementations§
Trait Implementations§
Source§impl AddAssign for Natural
impl AddAssign for Natural
Source§fn add_assign(&mut self, rhs: Self)
fn add_assign(&mut self, rhs: Self)
Performs the
+= operation. Read moreSource§impl From<PrimePower> for Natural
impl From<PrimePower> for Natural
Source§fn from(value: PrimePower) -> Self
fn from(value: PrimePower) -> Self
Converts to this type from the input type.
Source§impl MulAssign for Natural
impl MulAssign for Natural
Source§fn mul_assign(&mut self, rhs: Self)
fn mul_assign(&mut self, rhs: Self)
Performs the
*= operation. Read moreimpl Eq for Natural
impl StructuralPartialEq for Natural
Auto Trait Implementations§
impl Freeze for Natural
impl RefUnwindSafe for Natural
impl Send for Natural
impl Sync for Natural
impl Unpin for Natural
impl UnwindSafe for Natural
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> LocalOne for T
impl<T> LocalOne for T
Source§fn is_local_one(&self) -> bool
fn is_local_one(&self) -> bool
Checks whether or not
self is equivalent to its local oneSource§fn set_local_one(&mut self)
fn set_local_one(&mut self)
Sets the object equal to its local one
Source§impl<T> LocalZero for Twhere
T: Zero,
impl<T> LocalZero for Twhere
T: Zero,
Source§fn local_zero(&self) -> T
fn local_zero(&self) -> T
Returns a zero local to
selfSource§fn is_local_zero(&self) -> bool
fn is_local_zero(&self) -> bool
Checks whether or not
self is equivalent to its local zeroSource§fn set_local_zero(&mut self)
fn set_local_zero(&mut self)
Sets the object equal to its local zero
Source§impl<A, N> PrimedInto<A> for Nwhere
A: PrimedFrom<N>,
impl<A, N> PrimedInto<A> for Nwhere
A: PrimedFrom<N>,
Source§impl<A, N> TryPrimedInto<A> for Nwhere
A: TryPrimedFrom<N>,
impl<A, N> TryPrimedInto<A> for Nwhere
A: TryPrimedFrom<N>,
Source§type Error = <A as TryPrimedFrom<N>>::Error
type Error = <A as TryPrimedFrom<N>>::Error
The type returned in the event of a conversion error