Trait Object

Source
pub trait Object: Copy {
    const TYPE: ObjectType;

    // Required method
    fn handle(&self) -> c_uint;
}

Required Associated Constants§

Required Methods§

Source

fn handle(&self) -> c_uint

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§

Source§

impl Object for Buffer

Source§

const TYPE: ObjectType = ObjectType::Buffer

Source§

impl Object for Framebuffer

Source§

const TYPE: ObjectType = ObjectType::Framebuffer

Source§

impl Object for Image

Source§

const TYPE: ObjectType = ObjectType::Image

Source§

impl Object for ImageView

Source§

const TYPE: ObjectType = ObjectType::Image

Source§

impl Object for Pipeline

Source§

const TYPE: ObjectType = ObjectType::Pipeline

Source§

impl Object for Renderbuffer

Source§

const TYPE: ObjectType = ObjectType::Renderbuffer

Source§

impl Object for Sampler

Source§

const TYPE: ObjectType = ObjectType::Sampler

Source§

impl Object for Shader

Source§

const TYPE: ObjectType = ObjectType::Shader

Source§

impl Object for VertexArray

Source§

const TYPE: ObjectType = ObjectType::VertexArray