Index

Trait Index 

Source
pub trait Index: Copy {
    // Required methods
    fn into_usize(self) -> usize;
    fn from_usize(v: usize) -> Self;
}
Expand description

Index of a vertex

Required Methods§

Source

fn into_usize(self) -> usize

Source

fn from_usize(v: usize) -> Self

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 Index for u16

Source§

impl Index for u32

Source§

impl Index for usize

Implementors§