We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
salsa::Id::from_u32
#[doc(hidden)]
1 parent fbc78e5 commit c63ba87Copy full SHA for c63ba87
src/id.rs
@@ -29,8 +29,9 @@ impl Id {
29
/// In general, you should not need to create salsa ids yourself,
30
/// but it can be useful if you are using the type as a general
31
/// purpose "identifier" internally.
32
+ #[doc(hidden)]
33
#[track_caller]
- pub(crate) const fn from_u32(x: u32) -> Self {
34
+ pub const fn from_u32(x: u32) -> Self {
35
Id {
36
value: match NonZeroU32::new(x + 1) {
37
Some(v) => v,
0 commit comments