Skip to content

Commit

Permalink
impl Deref for PointStamp (#459)
Browse files Browse the repository at this point in the history
  • Loading branch information
frankmcsherry authored Feb 2, 2024
1 parent 2895164 commit cb31c24
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/dynamic/pointstamp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,13 @@ impl<T: Timestamp> PointStamp<T> {
}
}

impl<T> std::ops::Deref for PointStamp<T> {
type Target = [T];
fn deref(&self) -> &Self::Target {
&self.vector
}
}

// Implement timely dataflow's `PartialOrder` trait.
use timely::order::PartialOrder;
impl<T: PartialOrder + Timestamp> PartialOrder for PointStamp<T> {
Expand Down

0 comments on commit cb31c24

Please sign in to comment.