Module typenum::__private
[−]
[src]
This module is for things that are conceptually private but that must be made public for typenum to work correctly.
Unless you are working on typenum itself, there is no need to view anything here.
Certainly don't implement any of the traits here for anything.
Just look away.
Loooooooooooooooooooooooooooooooooook awaaaaaaaaaaaayyyyyyyyyyyyyyyyyyyyyyyyyyyyy...
Modules
build |
Structs
InvertedUInt |
Inverted UInt (has most significant digit on the outside) |
InvertedUTerm |
Terminating character for |
Traits
BitDiff |
Gives SizeOf(Lhs) - SizeOf(Rhs) |
Invert |
Converts between standard numbers and inverted ones that have the most significant digit on the outside. |
InvertedUnsigned |
Inverted unsigned numbers |
PrivateAnd |
Does the real anding for |
PrivateCmp | |
PrivateDiv | |
PrivateDivFirstStep | |
PrivateIntegerAdd |
Used for addition of signed integers; C = P.cmp(N) Assumes P = Self is positive and N is negative where P and N are both passed as unsigned integers |
PrivateInvert |
Doubly private! Called by invert to make the magic happen once its done the first step. The Rhs is what we've got so far. |
PrivatePow | |
PrivateSizeOf | |
PrivateSub |
Does the real subtraction for |
PrivateXor |
Does the real xoring for |
ShiftDiff |
Performs Shl on Lhs so that SizeOf(Lhs) = SizeOf(Rhs) Fails if SizeOf(Lhs) > SizeOf(Rhs) |
Trim |
Convenience trait. Calls Invert -> TrimTrailingZeros -> Invert |
TrimTrailingZeros |
Gets rid of all zeros until it hits a one. |