glsl_layout

Trait Std140

Source
pub unsafe trait Std140: Sized + Uniform<Std140 = Self> {
    // Provided method
    fn as_raw(&self) -> &[u8]  { ... }
}
Expand description

Special marker trait implemented only for std140 types.

§Safety

The type must not have any padding bytes

Provided Methods§

Source

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

Convert to bytes-slice.

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.

Implementors§