Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bitflags/bitflags
/ from_bits_retain
Method
from_bits_retain
examples/macro_free.rs:35–37 ·
view source on GitHub ↗
(bits: u32)
Source
from the content-addressed store, hash-verified
33
}
34
35
fn from_bits_retain(bits: u32) -> Self {
36
Self(bits)
37
}
38
}
39
40
// Not required: Add parsing support
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected