From 27c65be2502f6941e831c0fd6b9326b39aa4ec88 Mon Sep 17 00:00:00 2001 From: Dirkjan Ochtman Date: Wed, 17 Mar 2021 16:42:41 +0100 Subject: [PATCH] Add PointId::into_inner() helper for bindings --- instant-distance/src/types.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/instant-distance/src/types.rs b/instant-distance/src/types.rs index 0a4af1f..d1dad9e 100644 --- a/instant-distance/src/types.rs +++ b/instant-distance/src/types.rs @@ -246,6 +246,11 @@ impl PointId { pub fn is_valid(self) -> bool { self.0 != u32::MAX } + + #[doc(hidden)] + pub fn into_inner(self) -> u32 { + self.0 + } } impl Default for PointId {