Docs.rs
bitfrob-1.3.1
bitfrob 1.3.1
Docs.rs crate page
Zlib OR Apache-2.0 OR MIT
Links
Repository
crates.io
Source
Owners
Lokathor
Dependencies
Versions
100%
of the crate is documented
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
☰
In bitfrob
?
Function
bitfrob
::
u32_with_bit
source
·
[
−
]
pub const fn u32_with_bit(b:
u32
, u:
u32
, is_set:
bool
) ->
u32
Expand description
Replaces the
b
bit in
u
.
Panics
b
can’t exceed the number of bits in the type.