pub trait TextureSource<'a> {
// Required method
fn create_texture(self) -> Result<Texture<'a>, KtxError>;
}Expand description
A source of Textures.
Required Methods§
Sourcefn create_texture(self) -> Result<Texture<'a>, KtxError>
fn create_texture(self) -> Result<Texture<'a>, KtxError>
Attempts to create a new texture by consuming self.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".