cosmic::iced_renderer::graphics::image::image_rs

Trait EncodableLayout

source
pub trait EncodableLayout: EncodableLayout {
    // Required method
    fn as_bytes(&self) -> &[u8] ;
}
Expand description

Types which are safe to treat as an immutable byte slice in a pixel layout for image encoding.

Required Methods§

source

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

Get the bytes of this value.

Implementations on Foreign Types§

source§

impl EncodableLayout for [f32]

source§

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

source§

impl EncodableLayout for [u8]

source§

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

source§

impl EncodableLayout for [u16]

source§

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

Implementors§