diff options
Diffstat (limited to 'stockton-levels/src/traits/planes.rs')
-rw-r--r-- | stockton-levels/src/traits/planes.rs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/stockton-levels/src/traits/planes.rs b/stockton-levels/src/traits/planes.rs index 6962c71..6a4e95a 100644 --- a/stockton-levels/src/traits/planes.rs +++ b/stockton-levels/src/traits/planes.rs @@ -35,8 +35,9 @@ pub struct Plane { pub dist: f32, } -pub trait HasPlanes<'a> { - type PlanesIter: Iterator<Item = &'a Plane>; +pub trait HasPlanes { + type PlanesIter<'a>: Iterator<Item = &'a Plane>; - fn planes_iter(&'a self) -> Self::PlanesIter; + fn planes_iter<'a>(&'a self) -> Self::PlanesIter<'a>; + fn get_plane<'a>(&'a self, idx: u32) -> &'a Plane; }
\ No newline at end of file |