pub trait GetRef<'a, L> {
type Item;
fn get_ref(&'a self, location: L) -> Self::Item;
}
Get an immutable reference to the value at location
.
impl<'a, Coord, A, B> GetRef<'a, Coord> for (A, B) where
Coord: Copy,
A: GetRef<'a, Coord>,
B: GetRef<'a, Coord>,
impl<'a, Coord, A, B, C> GetRef<'a, Coord> for (A, B, C) where
Coord: Copy,
A: GetRef<'a, Coord>,
B: GetRef<'a, Coord>,
C: GetRef<'a, Coord>,
impl<'a, Coord, A, B, C, D> GetRef<'a, Coord> for (A, B, C, D) where
Coord: Copy,
A: GetRef<'a, Coord>,
B: GetRef<'a, Coord>,
C: GetRef<'a, Coord>,
D: GetRef<'a, Coord>,
impl<'a, Coord, A, B, C, D, E> GetRef<'a, Coord> for (A, B, C, D, E) where
Coord: Copy,
A: GetRef<'a, Coord>,
B: GetRef<'a, Coord>,
C: GetRef<'a, Coord>,
D: GetRef<'a, Coord>,
E: GetRef<'a, Coord>,
impl<'a, Coord, A, B, C, D, E, F> GetRef<'a, Coord> for (A, B, C, D, E, F) where
Coord: Copy,
A: GetRef<'a, Coord>,
B: GetRef<'a, Coord>,
C: GetRef<'a, Coord>,
D: GetRef<'a, Coord>,
E: GetRef<'a, Coord>,
F: GetRef<'a, Coord>,