Docs.rs
bitfrob-1.3.2
bitfrob 1.3.2
Permalink
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
docs.rs
About docs.rs
Privacy policy
Rust
Rust website
The Book
Standard Library API Reference
Rust by Example
The Cargo Guide
Clippy Documentation
bitfrob
1.3.2
u16_
with_
bit
Sections
Panics
In crate bitfrob
bitfrob
Function
u16_with_bit
Copy item path
Source
pub const fn u16_with_bit(b:
u32
, u:
u16
, is_set:
bool
) ->
u16
Expand description
Replaces the
b
bit in
u
.
§
Panics
b
can’t exceed the number of bits in the type.