Trait framebuffer_from

Source
pub trait framebuffer_from<T> {
    // Required method
    fn from(width: usize, height: usize, container: T) -> framebuffer;
}

Required Methods§

Source

fn from(width: usize, height: usize, container: T) -> framebuffer

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.

Implementations on Foreign Types§

Source§

impl<T> framebuffer_from<&[T]> for &[T]

Source§

fn from(width: usize, height: usize, container: &[T]) -> framebuffer

Source§

impl<T> framebuffer_from<&Vec<T>> for &Vec<T>

Source§

fn from(width: usize, height: usize, container: &Vec<T>) -> framebuffer

Source§

impl<T> framebuffer_from<&mut [T]> for &mut [T]

Source§

fn from(width: usize, height: usize, container: &mut [T]) -> framebuffer

Source§

impl<T> framebuffer_from<&mut Vec<T>> for &mut Vec<T>

Source§

fn from(width: usize, height: usize, container: &mut Vec<T>) -> framebuffer

Source§

impl<T> framebuffer_from<*const T> for *const T

Source§

fn from(width: usize, height: usize, container: *const T) -> framebuffer

Source§

impl<T> framebuffer_from<*mut T> for *mut T

Source§

fn from(width: usize, height: usize, container: *mut T) -> framebuffer

Implementors§