Trait parry3d::partitioning::IndexedData

source ·
pub trait IndexedData: Copy {
    // Required methods
    fn default() -> Self;
    fn index(&self) -> usize;
}
Expand description

A data to which an index is associated.

Required Methods§

source

fn default() -> Self

Creates a new default instance of Self.

source

fn index(&self) -> usize

Gets the index associated to self.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl IndexedData for u32

source§

fn default() -> Self

source§

fn index(&self) -> usize

source§

impl IndexedData for u64

source§

fn default() -> Self

source§

fn index(&self) -> usize

source§

impl IndexedData for usize

source§

fn default() -> Self

source§

fn index(&self) -> usize

Implementors§