Skip to main content

ComponentIndex

Trait ComponentIndex 

Source
pub trait ComponentIndex {
    // Required method
    fn component_index(self) -> usize;
}
Expand description

Converts a component selector into a zero-based index.

Required Methods§

Source

fn component_index(self) -> usize

Returns the selected zero-based component index.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl ComponentIndex for i32

Source§

impl ComponentIndex for usize

Implementors§