I'm learning Rust by looking at and manipulating examples from others. I tried to encapsulate the following code into a struct:
let mut encoder: gfx::Encoder<_, _> = factory.create_command_buffer().into();
I want to create a struct like this:
pub struct Window {
encoder: gfx::Encoder<?, ?>,
// ...
}
How do I know what types I have to put into the question marks?