pub trait GpuBufferExt<T: GpuDataType> {
// Required methods
fn to_host(&self) -> Result<Vec<T>, GpuError>;
fn to_host_range(&self, range: Range<usize>) -> Result<Vec<T>, GpuError>;
}Required Methods§
fn to_host(&self) -> Result<Vec<T>, GpuError>
fn to_host_range(&self, range: Range<usize>) -> Result<Vec<T>, GpuError>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".