Trait MenuIndexFromScreenCoord

Source
pub trait MenuIndexFromScreenCoord {
    // Required method
    fn menu_index_from_screen_coord<'a, T: Copy>(
        &self,
        menu: &'a Menu<T>,
        coord: Coord,
    ) -> Option<usize>;
}

Required Methods§

Source

fn menu_index_from_screen_coord<'a, T: Copy>( &self, menu: &'a Menu<T>, coord: Coord, ) -> Option<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 MenuIndexFromScreenCoord for ()

Source§

fn menu_index_from_screen_coord<'a, T: Copy>( &self, _menu: &'a Menu<T>, _coord: Coord, ) -> Option<usize>

Implementors§