Trait nannou::ui::backend::glium::glium::buffer::Content[][src]

pub unsafe trait Content {
    type Owned;
    fn read<F, E>(size: usize, F) -> Result<Self::Owned, E>
    where
        F: FnOnce(&mut Self) -> Result<(), E>
;
fn get_elements_size() -> usize;
fn to_void_ptr(&self) -> *const ();
fn ref_from_ptr(ptr: *mut (), size: usize) -> Option<*mut Self>;
fn is_size_suitable(usize) -> bool; }

Trait for types of data that can be put inside buffers.

Associated Types

A type that holds a sized version of the content.

Required Methods

Prepares an output buffer, then turns this buffer into an Owned.

Returns the size of each element.

Produces a pointer to the data.

Builds a pointer to this type from a raw pointer.

Returns true if the size is suitable to store a type like this.

Implementations on Foreign Types

impl<T> Content for [T] where
    T: Copy
[src]

Implementors