pub trait RawBuffer: Sized {
type RawData: ?Sized;
// Required methods
fn data_ptr(&self) -> *const Self::RawData;
fn data_ptr_mut(&mut self) -> *mut Self::RawData;
}
Expand description
Provide access to the associated data for abstract buffer types.
Required Associated Types§
Required Methods§
Sourcefn data_ptr_mut(&mut self) -> *mut Self::RawData
fn data_ptr_mut(&mut self) -> *mut Self::RawData
Access the data as a mutable pointer.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.