pub trait SwapchainImageFactory<TImage: ISwapchainImage + ?Sized> {
// Required method
fn create_image(&self, size: PixelSize) -> Rc<TImage>;
}Expand description
The image factory of a swapchain: the member a concrete swapchain has to provide.
Required Methods§
fn create_image(&self, size: PixelSize) -> Rc<TImage>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".