Skip to main content

EntityIdArith

Trait EntityIdArith 

Source
pub trait EntityIdArith:
    EntityId
    + Add<usize, Output = Self>
    + AddAssign<usize>
    + Sub<usize, Output = Self>
    + SubAssign<usize>
    + Add<isize, Output = Self>
    + AddAssign<isize>
    + Sub<isize, Output = Self>
    + SubAssign<isize>
    + Add<i32, Output = Self>
    + AddAssign<i32>
    + Sub<i32, Output = Self>
    + SubAssign<i32>
    + Sub<Self, Output = isize> {
    // Provided methods
    fn range_until(self, other: Self) -> EntityRange<Self> { ... }
    fn range_until_inclusive(self, other: Self) -> EntityRange<Self> { ... }
    fn range_around(self, down: usize, up: usize) -> EntityRange<Self> { ... }
    fn range_up(self, len: usize) -> EntityRange<Self> { ... }
    fn range_down(self, len: usize) -> EntityRange<Self> { ... }
}

Provided Methods§

Source

fn range_until(self, other: Self) -> EntityRange<Self>

Source

fn range_until_inclusive(self, other: Self) -> EntityRange<Self>

Source

fn range_around(self, down: usize, up: usize) -> EntityRange<Self>

Source

fn range_up(self, len: usize) -> EntityRange<Self>

Source

fn range_down(self, len: usize) -> EntityRange<Self>

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§