pub trait BasicUniformSetter {
// Provided methods
fn set_uniform<U>(
&mut self,
gl: &mut Context,
value: <U as UniformTrait>::Value,
)
where Self: UniformGetter<U>,
U: UniformTrait,
<U as UniformTrait>::Value: Into<RawUniformValue> { ... }
fn bind_texture<U, T>(
&mut self,
gl: &mut Context,
texture: T,
texture_unit: <U as UniformTrait>::Value,
)
where Self: UniformGetter<U>,
U: UniformTrait,
<U as UniformTrait>::Value: Copy + Into<TextureUnit> + Into<RawUniformValue>,
T: Texture { ... }
}Provided Methods§
fn set_uniform<U>( &mut self, gl: &mut Context, value: <U as UniformTrait>::Value, )
fn bind_texture<U, T>(
&mut self,
gl: &mut Context,
texture: T,
texture_unit: <U as UniformTrait>::Value,
)where
Self: UniformGetter<U>,
U: UniformTrait,
<U as UniformTrait>::Value: Copy + Into<TextureUnit> + Into<RawUniformValue>,
T: Texture,
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".