pub trait Handle: Copy + Clone + Debug + PartialEq + Eq + Hash + Default + Sized {
    type Repr;

    const TYPE: ObjectType;

    fn null() -> Self;
    fn from_raw(value: Self::Repr) -> Self;
    fn as_raw(self) -> Self::Repr;
    fn is_null(self) -> bool;
}
Expand description

A Vulkan handle type.

Required Associated Types

The underlying type for this handle type.

Required Associated Constants

The object type for this handle type.

Required Methods

Constructs a null instance of this handle type.

Constructs an instance of this handle type with the supplied underlying value.

Gets the underlying value for this handle.

Returns whether this handle is a null handle.

Implementors