grid_tree/
vector_key.rs

1use std::ops::{Add, Shl, Shr, Sub};
2
3/// An integer vector that can be used as a key for [`Tree`](crate::Tree).
4pub trait VectorKey:
5    Sized
6    + Copy
7    + Add<Output = Self>
8    + Sub<Output = Self>
9    + Shl<Output = Self>
10    + Shr<Output = Self>
11    + Eq
12{
13    // Need this because we can't impl `Mul<u32>` for foreign types.
14    fn mul_u32(self, rhs: u32) -> Self;
15}