Docs.rs
foyer-common-0.22.1
foyer-common 0.22.1
Permalink
Docs.rs crate page
Apache-2.0
Links
Homepage
Repository
crates.io
Source
Owners
MrCroxx
Dependencies
anyhow ^1
normal
bincode ^1
normal
optional
bytes ^1
normal
cfg-if ^1
normal
fastrace ^0.7
normal
optional
mixtrics ^0.2
normal
parking_lot ^0.12
normal
pin-project ^1
normal
serde ^1
normal
optional
foyer-tokio ^0.22.1
normal
twox-hash ^2
normal
bytes ^1
dev
criterion ^0.7
dev
mixtrics ^0.2
dev
paste ^1
dev
rand ^0.9
dev
serde ^1
dev
serde_bytes ^0.11
dev
Versions
70.2%
of the crate is documented
Platform
aarch64-apple-darwin
aarch64-unknown-linux-gnu
i686-pc-windows-msvc
x86_64-pc-windows-msvc
x86_64-unknown-linux-gnu
Feature flags
docs.rs
About docs.rs
Badges
Builds
Metadata
Shorthand URLs
Download
Rustdoc JSON
Build queue
Privacy policy
Rust
Rust website
The Book
Standard Library API Reference
Rust by Example
The Cargo Guide
Clippy Documentation
assert_pow2
foyer_
common
0.22.1
In foyer_
common::
bits
foyer_common
::
bits
Function
assert_
pow2
Copy item path
Source
pub fn assert_pow2<U:
Unsigned
>(v: U)
Expand description
Assert that the given value is a power of 2.