Trait rerun::external::image::EncodableLayout

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§

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

Get the bytes of this value.

Implementations on Foreign Types§

§

impl EncodableLayout for [f32]

§

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

§

impl EncodableLayout for [u8]

§

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

§

impl EncodableLayout for [u16]

§

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

Implementors§