1 #![feature(generic_associated_types)]
6 type TextureIter<'a>: Iterator<Item = &'a Texture>
10 fn get_texture(&self) -> Self::TextureIter<'_>;
14 type Surface<'a>: Surface
18 fn get_surface(&self) -> Self::Surface<'_>;
21 impl<'s> Surface for &'s Texture {
22 type TextureIter<'a> = std::option::IntoIter<&'a Texture>;
25 fn get_texture(&self) -> Self::TextureIter<'_> {
26 let option: Option<&Texture> = Some(self);
31 impl Swapchain for Texture {
32 type Surface<'a> = &'a Texture;
34 fn get_surface(&self) -> Self::Surface<'_> {