ToIndex

Trait ToIndex 

Source
pub trait ToIndex {
    // Required method
    fn to_index<Q: Borrow<Self>>(index: Option<Q>) -> usize;
}

Required Methods§

Source

fn to_index<Q: Borrow<Self>>(index: Option<Q>) -> 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 ToIndex for usize

Source§

fn to_index<Q: Borrow<Self>>(index: Option<Q>) -> usize

Implementors§

Source§

impl ToIndex for osiris::sched::task::UId

Source§

impl ToIndex for osiris::sched::thread::UId