Skip to content

Commit 3fb04c3

Browse files
committed
Expose Id::into_raw
1 parent 508593d commit 3fb04c3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/internal/arena.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,11 @@ impl<T> fmt::Debug for Id<T> {
5050
}
5151

5252
impl<T> Id<T> {
53-
pub(crate) fn into_raw(self) -> usize {
53+
/// The id as index.
54+
pub fn into_raw(self) -> usize {
5455
self.raw as usize
5556
}
57+
5658
fn from(n: u32) -> Self {
5759
Self {
5860
raw: n,

0 commit comments

Comments
 (0)