spirt::spv::spec::indexed

Trait FlatIdx

Source
pub trait FlatIdx: Copy {
    // Required method
    fn to_usize(self) -> usize;
}

Required Methods§

Source

fn to_usize(self) -> usize

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.

Implementations on Foreign Types§

Source§

impl FlatIdx for u16

Implementors§