Trait Vertex

Source
pub trait Vertex: Sized + Copy {
    // Required method
    fn build_bindings(    ) -> Cow<'static, [(Cow<'static, str>, usize, AttributeType, bool)]>;

    // Provided method
    fn is_supported<C>(caps: &C) -> bool
       where C: CapabilitiesSource + ?Sized { ... }
}
Expand description

Trait for structures that represent a vertex.

Instead of implementing this trait yourself, it is recommended to use the implement_vertex! macro instead.

Required Methods§

Source

fn build_bindings() -> Cow<'static, [(Cow<'static, str>, usize, AttributeType, bool)]>

Builds the VertexFormat representing the layout of this element.

Provided Methods§

Source

fn is_supported<C>(caps: &C) -> bool

Returns true if the backend supports this vertex format.

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§