diff --git a/src/rt/rust_shape.cpp b/src/rt/rust_shape.cpp index aecb9254158f..3a83f3d4c78b 100644 --- a/src/rt/rust_shape.cpp +++ b/src/rt/rust_shape.cpp @@ -35,24 +35,6 @@ const uint8_t CMP_LE = 2u; namespace shape { -// NB: This function does not align. -template -inline data_pair -bump_dp(ptr_pair &ptr) { - data_pair data(*reinterpret_cast(ptr.fst), - *reinterpret_cast(ptr.snd)); - ptr += sizeof(T); - return data; -} - -template -inline data_pair -get_dp(ptr_pair &ptr) { - data_pair data(*reinterpret_cast(ptr.fst), - *reinterpret_cast(ptr.snd)); - return data; -} - // A shape printer, useful for debugging void diff --git a/src/rt/rust_shape.h b/src/rt/rust_shape.h index d0e72005a346..2f1ba6c62abd 100644 --- a/src/rt/rust_shape.h +++ b/src/rt/rust_shape.h @@ -665,6 +665,24 @@ public: } }; +// NB: This function does not align. +template +inline data_pair +bump_dp(ptr_pair &ptr) { + data_pair data(*reinterpret_cast(ptr.fst), + *reinterpret_cast(ptr.snd)); + ptr += sizeof(T); + return data; +} + +template +inline data_pair +get_dp(ptr_pair &ptr) { + data_pair data(*reinterpret_cast(ptr.fst), + *reinterpret_cast(ptr.snd)); + return data; +} + } // end namespace shape