Trait Data
Source pub trait Data {
type Output;
// Required method
unsafe fn data(&self) -> Self::Output;
}
Expand description
Provides access to the underlying memory buffer.
Return type of data()
function.
Returns a pointer to the underlying memory buffer.
§Safety
The caller must make sure self
contains a valid pointer. This function
may invoke arbitrary foreign code, so no safety guarantees can be made.