Skip to main content

EntityDelta

Trait EntityDelta 

Source
pub trait EntityDelta: Copy {
    // Required methods
    fn add_to(self, index: usize) -> usize;
    fn sub_from(self, index: usize) -> usize;
}

Required Methods§

Source

fn add_to(self, index: usize) -> usize

Source

fn sub_from(self, index: usize) -> usize

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl EntityDelta for i32

Source§

fn add_to(self, index: usize) -> usize

Source§

fn sub_from(self, index: usize) -> usize

Source§

impl EntityDelta for isize

Source§

fn add_to(self, index: usize) -> usize

Source§

fn sub_from(self, index: usize) -> usize

Source§

impl EntityDelta for usize

Source§

fn add_to(self, index: usize) -> usize

Source§

fn sub_from(self, index: usize) -> usize

Implementors§