rendy_util::types::vertex

Trait AsVertex

Source
pub trait AsVertex:
    Debug
    + PartialEq
    + PartialOrd
    + Copy
    + Sized
    + Send
    + Sync
    + 'static {
    // Required method
    fn vertex() -> VertexFormat;
}
Expand description

Trait implemented by all valid vertex formats.

Required Methods§

Source

fn vertex() -> VertexFormat

List of all attributes formats with name and offset.

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§