Created
June 11, 2017 04:39
-
-
Save Osspial/23a99c1cb88febd7eb25ca7f10c16db6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
struct World; | |
struct UI; | |
struct VulkanoRenderer; | |
struct GFXRenderer; | |
impl Renderer<World> for VulkanoRenderer{/*...*/} | |
impl Renderer<UI> for VulkanoRenderer{/*...*/} | |
impl Renderer<World> for GFXRenderer{/*...*/} | |
impl Renderer<UI> for GFXRenderer{/*...*/} | |
trait Renderer<T> { | |
fn render_item(&mut self, _: &mut T); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment