Closed syvb closed 1 week ago
This adds a const fn to create an Oid from a u32. Oid::from_u32_unchecked is the only way to do that currently, but it's deprecated and its successor From::from is non-const.
const fn
Oid
u32
Oid::from_u32_unchecked
From::from
This adds a
const fn
to create anOid
from au32
.Oid::from_u32_unchecked
is the only way to do that currently, but it's deprecated and its successorFrom::from
is non-const.