pub type N213 = NInt<U213>;
struct N213 { }
Implementations
Instantiates a singleton representing this strictly negative integer.
Trait Implementations
Returns the “default value” for a type.
Read more
N(Ul) - N(Ur)
: We resolve this with our PrivateAdd
The resulting type after applying the -
operator.
N(Ul) * N(Ur) = P(Ul * Ur)
The resulting type after applying the *
operator.
The result of the exponentiation.
This function isn’t used in this crate, but may be useful for others.
It is implemented for primitives.
Read more
$A<Ul> % $B<Ur> = $R<Ul % Ur>
The resulting type after applying the %
operator.
The resulting type after applying the *
operator.
The resulting type after applying the -
operator.
Method returning the concrete value for the type.
The concrete value for the type. Can be used in const
contexts.
$A<Ul> % $B<Ur> = $R<Ul % Ur>
The resulting type after applying the %
operator.
Method returning the concrete value for the type.
The concrete value for the type. Can be used in const
contexts.
The resulting type after applying the *
operator.
The resulting type after applying the +
operator.
$A<Ul> / $B<Ur> = $R<Ul / Ur>
The resulting type after applying the /
operator.
N(Ul) + N(Ur) = N(Ul + Ur)
The resulting type after applying the +
operator.
The type of the maximum of Self
and Rhs
Method returning the maximum
The greatest common divisor.
N(Ul) - P(Ur) = N(Ul + Ur)
The resulting type after applying the -
operator.
This method tests for self
and other
values to be equal, and is used
by ==
.
This method tests for !=
. The default implementation is almost always
sufficient, and should not be overridden without very good reason.
The greatest common divisor.
Method returning the concrete value for the type.
The concrete value for the type. Can be used in const
contexts.
N(Ul) * P(Ur) = N(Ul * Ur)
The resulting type after applying the *
operator.
The resulting type after applying the *
operator.
This method returns an ordering between
self
and
other
values if one exists.
Read more
This method tests less than (for
self
and
other
) and is used by the
<
operator.
Read more
This method tests less than or equal to (for
self
and
other
) and is used by the
<=
operator.
Read more
This method tests greater than (for
self
and
other
) and is used by the
>
operator.
Read more
This method tests greater than or equal to (for
self
and
other
) and is used by the
>=
operator.
Read more
The result of the comparison. It should only ever be one of Greater
, Less
, or Equal
.
N(Ul) + P(Ur)
: We resolve this with our PrivateAdd
The resulting type after applying the +
operator.
The type of the minimum of Self
and Rhs
Method returning the minimum
The type of the maximum of Self
and Rhs
Method returning the maximum
Performs copy-assignment from
source
.
Read more
The result of the comparison. It should only ever be one of Greater
, Less
, or Equal
.
The resulting type after applying the -
operator.
Formats the value using the given formatter.
Read more
Compares and returns the maximum of two values.
Read more
Compares and returns the minimum of two values.
Read more
Restrict a value to a certain interval.
Read more
The type of the minimum of Self
and Rhs
Method returning the minimum
The greatest common divisor.
N(Ul)^P(Ur) = P(Ul^Ur) if Ur is even
The result of the exponentiation.
This function isn’t used in this crate, but may be useful for others.
It is implemented for primitives.
Read more
Method returning the concrete value for the type.
The concrete value for the type. Can be used in const
contexts.
The type of the minimum of Self
and Rhs
Method returning the minimum
The type of the maximum of Self
and Rhs
Method returning the maximum
$A<Ul> / $B<Ur> = $R<Ul / Ur>
The resulting type after applying the /
operator.
The result of the comparison. It should only ever be one of Greater
, Less
, or Equal
.
N(Ul)^P(Ur) = N(Ul^Ur) if Ur is odd
The result of the exponentiation.
This function isn’t used in this crate, but may be useful for others.
It is implemented for primitives.
Read more