pub trait RenderDevice {
// Required methods
fn bind_buffer(&mut self) -> Result<(), &'static str>;
fn draw_buffer_all(&mut self) -> Result<(), &'static str>;
fn draw_buffer_range(&mut self) -> Result<(), &'static str>;
fn store_buff_data(
&mut self,
data: &HashMap<BuffDataType, Vec<f32>>,
) -> Result<(), &'static str>;
fn clear_buff_data(&mut self);
}Required Methods§
fn bind_buffer(&mut self) -> Result<(), &'static str>
fn draw_buffer_all(&mut self) -> Result<(), &'static str>
fn draw_buffer_range(&mut self) -> Result<(), &'static str>
fn store_buff_data( &mut self, data: &HashMap<BuffDataType, Vec<f32>>, ) -> Result<(), &'static str>
fn clear_buff_data(&mut self)
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".