Skip to main content

RgbaImageSource

Trait RgbaImageSource 

Source
pub trait RgbaImageSource:
    Debug
    + Send
    + Sync {
    // Required method
    fn rgba(&self) -> &[u8] ;
}

Required Methods§

Source

fn rgba(&self) -> &[u8]

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl RgbaImageSource for Arc<[u8]>

Source§

fn rgba(&self) -> &[u8]

Source§

impl RgbaImageSource for Box<[u8]>

Source§

fn rgba(&self) -> &[u8]

Source§

impl RgbaImageSource for Vec<u8>

Source§

fn rgba(&self) -> &[u8]

Implementors§