pub trait ToInstance<I: Instance> {
type State;
// Required method
fn to_instance(
&self,
handler: &DeviceHandler,
shaders: &I::Shaders,
desc: &Self::State,
) -> I;
}Expand description
The trait for generating Instance from Self.
Required Associated Types§
Required Methods§
Sourcefn to_instance(
&self,
handler: &DeviceHandler,
shaders: &I::Shaders,
desc: &Self::State,
) -> I
fn to_instance( &self, handler: &DeviceHandler, shaders: &I::Shaders, desc: &Self::State, ) -> I
Creates Instance from self.