From cb31c246a2024602596717d5b5d4ce91b08983ac Mon Sep 17 00:00:00 2001 From: Frank McSherry Date: Fri, 2 Feb 2024 15:54:48 -0500 Subject: [PATCH] impl Deref for PointStamp (#459) --- src/dynamic/pointstamp.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/dynamic/pointstamp.rs b/src/dynamic/pointstamp.rs index 60f4e239f..bfaec29e9 100644 --- a/src/dynamic/pointstamp.rs +++ b/src/dynamic/pointstamp.rs @@ -46,6 +46,13 @@ impl PointStamp { } } +impl std::ops::Deref for PointStamp { + type Target = [T]; + fn deref(&self) -> &Self::Target { + &self.vector + } +} + // Implement timely dataflow's `PartialOrder` trait. use timely::order::PartialOrder; impl PartialOrder for PointStamp {