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.

Required Associated Types§

Source

type Output

Return type of data() function.

Required Methods§

Source

unsafe fn data(&self) -> Self::Output

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.

Implementors§