Docs.rs
typenum-1.16.0
typenum 1.16.0
Docs.rs crate page
MIT OR Apache-2.0
Links
Documentation
Repository
Crates.io
Source
Owners
paholg
Dependencies
scale-info ^1.0
normal
Versions
100%
of the crate is documented
Go to latest version
Platform
i686-pc-windows-msvc
i686-unknown-linux-gnu
x86_64-apple-darwin
x86_64-pc-windows-msvc
x86_64-unknown-linux-gnu
Feature flags
Rust
About docs.rs
Privacy policy
Rust website
The Book
Standard Library API Reference
Rust by Example
The Cargo Guide
Clippy Documentation
☰
N1
Trait Implementations
Pow<NInt<UInt<U, B0>>>
Pow<NInt<UInt<U, B1>>>
In typenum::consts
?
Type Definition
typenum
::
consts
::
N1
source
·
[
−
]
pub type N1 =
NInt
<
U1
>;
Trait Implementations
§
source
§
impl<U:
Unsigned
>
Pow
<
NInt
<
UInt
<U,
B0
>>> for
N1
(-1)^N = 1 if N is even
§
type
Output
=
PInt
<
UInt
<
UTerm
,
B1
>>
The result of the exponentiation.
source
§
fn
powi
(self, _:
NInt
<
UInt
<U,
B0
>>) -> Self::
Output
This function isn’t used in this crate, but may be useful for others. It is implemented for primitives.
Read more
source
§
impl<U:
Unsigned
>
Pow
<
NInt
<
UInt
<U,
B1
>>> for
N1
(-1)^N = -1 if N is odd
§
type
Output
=
NInt
<
UInt
<
UTerm
,
B1
>>
The result of the exponentiation.
source
§
fn
powi
(self, _:
NInt
<
UInt
<U,
B1
>>) -> Self::
Output
This function isn’t used in this crate, but may be useful for others. It is implemented for primitives.
Read more