rendy_command

Trait Capability

Source
pub trait Capability:
    Copy
    + Debug
    + 'static {
    // Required methods
    fn from_queue_type(queue_type: QueueType) -> Option<Self>;
    fn into_queue_type(self) -> QueueType;
}
Expand description

Abstract capability specifier.

Required Methods§

Source

fn from_queue_type(queue_type: QueueType) -> Option<Self>

Try to create capability instance from queue_type. Instance will be created if all required queue_type set.

Source

fn into_queue_type(self) -> QueueType

Convert into QueueType

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§