Coordinates

Trait Coordinates 

Source
pub trait Coordinates: CubeType + Clone {
    // Required methods
    fn add(this: Self, other: Self) -> Self;
    fn sub(this: Self, other: Self) -> Self;
    fn min(this: Self, other: Self) -> Self;
    fn max(this: Self, other: Self) -> Self;
    fn is_in_bounds(pos: &Self, bounds: &Self) -> bool;
    fn from_int(this: &Self, value: i64) -> Self;
    fn __expand_add(
        scope: &mut Scope,
        this: <Self as CubeType>::ExpandType,
        other: <Self as CubeType>::ExpandType,
    ) -> <Self as CubeType>::ExpandType;
    fn __expand_sub(
        scope: &mut Scope,
        this: <Self as CubeType>::ExpandType,
        other: <Self as CubeType>::ExpandType,
    ) -> <Self as CubeType>::ExpandType;
    fn __expand_min(
        scope: &mut Scope,
        this: <Self as CubeType>::ExpandType,
        other: <Self as CubeType>::ExpandType,
    ) -> <Self as CubeType>::ExpandType;
    fn __expand_max(
        scope: &mut Scope,
        this: <Self as CubeType>::ExpandType,
        other: <Self as CubeType>::ExpandType,
    ) -> <Self as CubeType>::ExpandType;
    fn __expand_is_in_bounds(
        scope: &mut Scope,
        pos: <Self as CubeType>::ExpandType,
        bounds: <Self as CubeType>::ExpandType,
    ) -> <bool as CubeType>::ExpandType;
    fn __expand_from_int(
        scope: &mut Scope,
        this: <Self as CubeType>::ExpandType,
        value: i64,
    ) -> <Self as CubeType>::ExpandType;
}
Expand description

A set of coordinates used in layouts. Contains some utilities for comptime inspection.

Required Methods§

Source

fn add(this: Self, other: Self) -> Self

Add two coordinates together and return the result.

Source

fn sub(this: Self, other: Self) -> Self

Subtract two coordinates from each other and return the result.

Source

fn min(this: Self, other: Self) -> Self

Apply an elementwise minimum to the coordinates and return the result.

Source

fn max(this: Self, other: Self) -> Self

Apply an elementwise maximum to the coordinates and return the result.

Source

fn is_in_bounds(pos: &Self, bounds: &Self) -> bool

Check whether pos is fully contained within bounds.

Source

fn from_int(this: &Self, value: i64) -> Self

Create a new coordinates object where all values are value. this may be used as a reference coordinate for dynamically sized layouts.

Source

fn __expand_add( scope: &mut Scope, this: <Self as CubeType>::ExpandType, other: <Self as CubeType>::ExpandType, ) -> <Self as CubeType>::ExpandType

Source

fn __expand_sub( scope: &mut Scope, this: <Self as CubeType>::ExpandType, other: <Self as CubeType>::ExpandType, ) -> <Self as CubeType>::ExpandType

Source

fn __expand_min( scope: &mut Scope, this: <Self as CubeType>::ExpandType, other: <Self as CubeType>::ExpandType, ) -> <Self as CubeType>::ExpandType

Source

fn __expand_max( scope: &mut Scope, this: <Self as CubeType>::ExpandType, other: <Self as CubeType>::ExpandType, ) -> <Self as CubeType>::ExpandType

Source

fn __expand_is_in_bounds( scope: &mut Scope, pos: <Self as CubeType>::ExpandType, bounds: <Self as CubeType>::ExpandType, ) -> <bool as CubeType>::ExpandType

Source

fn __expand_from_int( scope: &mut Scope, this: <Self as CubeType>::ExpandType, value: i64, ) -> <Self as CubeType>::ExpandType

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 Coordinates for i8

Source§

fn add(this: Self, other: Self) -> Self

Source§

fn sub(this: Self, other: Self) -> Self

Source§

fn min(this: Self, other: Self) -> Self

Source§

fn max(this: Self, other: Self) -> Self

Source§

fn is_in_bounds(pos: &Self, bounds: &Self) -> bool

Source§

fn from_int(_this: &Self, value: i64) -> Self

Source§

fn __expand_add( scope: &mut Scope, this: <Self as CubeType>::ExpandType, other: <Self as CubeType>::ExpandType, ) -> <Self as CubeType>::ExpandType

Source§

fn __expand_sub( scope: &mut Scope, this: <Self as CubeType>::ExpandType, other: <Self as CubeType>::ExpandType, ) -> <Self as CubeType>::ExpandType

Source§

fn __expand_min( scope: &mut Scope, this: <Self as CubeType>::ExpandType, other: <Self as CubeType>::ExpandType, ) -> <Self as CubeType>::ExpandType

Source§

fn __expand_max( scope: &mut Scope, this: <Self as CubeType>::ExpandType, other: <Self as CubeType>::ExpandType, ) -> <Self as CubeType>::ExpandType

Source§

fn __expand_is_in_bounds( scope: &mut Scope, pos: <Self as CubeType>::ExpandType, bounds: <Self as CubeType>::ExpandType, ) -> <bool as CubeType>::ExpandType

Source§

fn __expand_from_int( scope: &mut Scope, _this: <Self as CubeType>::ExpandType, value: i64, ) -> <Self as CubeType>::ExpandType

Source§

impl Coordinates for i16

Source§

fn add(this: Self, other: Self) -> Self

Source§

fn sub(this: Self, other: Self) -> Self

Source§

fn min(this: Self, other: Self) -> Self

Source§

fn max(this: Self, other: Self) -> Self

Source§

fn is_in_bounds(pos: &Self, bounds: &Self) -> bool

Source§

fn from_int(_this: &Self, value: i64) -> Self

Source§

fn __expand_add( scope: &mut Scope, this: <Self as CubeType>::ExpandType, other: <Self as CubeType>::ExpandType, ) -> <Self as CubeType>::ExpandType

Source§

fn __expand_sub( scope: &mut Scope, this: <Self as CubeType>::ExpandType, other: <Self as CubeType>::ExpandType, ) -> <Self as CubeType>::ExpandType

Source§

fn __expand_min( scope: &mut Scope, this: <Self as CubeType>::ExpandType, other: <Self as CubeType>::ExpandType, ) -> <Self as CubeType>::ExpandType

Source§

fn __expand_max( scope: &mut Scope, this: <Self as CubeType>::ExpandType, other: <Self as CubeType>::ExpandType, ) -> <Self as CubeType>::ExpandType

Source§

fn __expand_is_in_bounds( scope: &mut Scope, pos: <Self as CubeType>::ExpandType, bounds: <Self as CubeType>::ExpandType, ) -> <bool as CubeType>::ExpandType

Source§

fn __expand_from_int( scope: &mut Scope, _this: <Self as CubeType>::ExpandType, value: i64, ) -> <Self as CubeType>::ExpandType

Source§

impl Coordinates for i32

Source§

fn add(this: Self, other: Self) -> Self

Source§

fn sub(this: Self, other: Self) -> Self

Source§

fn min(this: Self, other: Self) -> Self

Source§

fn max(this: Self, other: Self) -> Self

Source§

fn is_in_bounds(pos: &Self, bounds: &Self) -> bool

Source§

fn from_int(_this: &Self, value: i64) -> Self

Source§

fn __expand_add( scope: &mut Scope, this: <Self as CubeType>::ExpandType, other: <Self as CubeType>::ExpandType, ) -> <Self as CubeType>::ExpandType

Source§

fn __expand_sub( scope: &mut Scope, this: <Self as CubeType>::ExpandType, other: <Self as CubeType>::ExpandType, ) -> <Self as CubeType>::ExpandType

Source§

fn __expand_min( scope: &mut Scope, this: <Self as CubeType>::ExpandType, other: <Self as CubeType>::ExpandType, ) -> <Self as CubeType>::ExpandType

Source§

fn __expand_max( scope: &mut Scope, this: <Self as CubeType>::ExpandType, other: <Self as CubeType>::ExpandType, ) -> <Self as CubeType>::ExpandType

Source§

fn __expand_is_in_bounds( scope: &mut Scope, pos: <Self as CubeType>::ExpandType, bounds: <Self as CubeType>::ExpandType, ) -> <bool as CubeType>::ExpandType

Source§

fn __expand_from_int( scope: &mut Scope, _this: <Self as CubeType>::ExpandType, value: i64, ) -> <Self as CubeType>::ExpandType

Source§

impl Coordinates for i64

Source§

fn add(this: Self, other: Self) -> Self

Source§

fn sub(this: Self, other: Self) -> Self

Source§

fn min(this: Self, other: Self) -> Self

Source§

fn max(this: Self, other: Self) -> Self

Source§

fn is_in_bounds(pos: &Self, bounds: &Self) -> bool

Source§

fn from_int(_this: &Self, value: i64) -> Self

Source§

fn __expand_add( scope: &mut Scope, this: <Self as CubeType>::ExpandType, other: <Self as CubeType>::ExpandType, ) -> <Self as CubeType>::ExpandType

Source§

fn __expand_sub( scope: &mut Scope, this: <Self as CubeType>::ExpandType, other: <Self as CubeType>::ExpandType, ) -> <Self as CubeType>::ExpandType

Source§

fn __expand_min( scope: &mut Scope, this: <Self as CubeType>::ExpandType, other: <Self as CubeType>::ExpandType, ) -> <Self as CubeType>::ExpandType

Source§

fn __expand_max( scope: &mut Scope, this: <Self as CubeType>::ExpandType, other: <Self as CubeType>::ExpandType, ) -> <Self as CubeType>::ExpandType

Source§

fn __expand_is_in_bounds( scope: &mut Scope, pos: <Self as CubeType>::ExpandType, bounds: <Self as CubeType>::ExpandType, ) -> <bool as CubeType>::ExpandType

Source§

fn __expand_from_int( scope: &mut Scope, _this: <Self as CubeType>::ExpandType, value: i64, ) -> <Self as CubeType>::ExpandType

Source§

impl Coordinates for u8

Source§

fn add(this: Self, other: Self) -> Self

Source§

fn sub(this: Self, other: Self) -> Self

Source§

fn min(this: Self, other: Self) -> Self

Source§

fn max(this: Self, other: Self) -> Self

Source§

fn is_in_bounds(pos: &Self, bounds: &Self) -> bool

Source§

fn from_int(_this: &Self, value: i64) -> Self

Source§

fn __expand_add( scope: &mut Scope, this: <Self as CubeType>::ExpandType, other: <Self as CubeType>::ExpandType, ) -> <Self as CubeType>::ExpandType

Source§

fn __expand_sub( scope: &mut Scope, this: <Self as CubeType>::ExpandType, other: <Self as CubeType>::ExpandType, ) -> <Self as CubeType>::ExpandType

Source§

fn __expand_min( scope: &mut Scope, this: <Self as CubeType>::ExpandType, other: <Self as CubeType>::ExpandType, ) -> <Self as CubeType>::ExpandType

Source§

fn __expand_max( scope: &mut Scope, this: <Self as CubeType>::ExpandType, other: <Self as CubeType>::ExpandType, ) -> <Self as CubeType>::ExpandType

Source§

fn __expand_is_in_bounds( scope: &mut Scope, pos: <Self as CubeType>::ExpandType, bounds: <Self as CubeType>::ExpandType, ) -> <bool as CubeType>::ExpandType

Source§

fn __expand_from_int( scope: &mut Scope, _this: <Self as CubeType>::ExpandType, value: i64, ) -> <Self as CubeType>::ExpandType

Source§

impl Coordinates for u16

Source§

fn add(this: Self, other: Self) -> Self

Source§

fn sub(this: Self, other: Self) -> Self

Source§

fn min(this: Self, other: Self) -> Self

Source§

fn max(this: Self, other: Self) -> Self

Source§

fn is_in_bounds(pos: &Self, bounds: &Self) -> bool

Source§

fn from_int(_this: &Self, value: i64) -> Self

Source§

fn __expand_add( scope: &mut Scope, this: <Self as CubeType>::ExpandType, other: <Self as CubeType>::ExpandType, ) -> <Self as CubeType>::ExpandType

Source§

fn __expand_sub( scope: &mut Scope, this: <Self as CubeType>::ExpandType, other: <Self as CubeType>::ExpandType, ) -> <Self as CubeType>::ExpandType

Source§

fn __expand_min( scope: &mut Scope, this: <Self as CubeType>::ExpandType, other: <Self as CubeType>::ExpandType, ) -> <Self as CubeType>::ExpandType

Source§

fn __expand_max( scope: &mut Scope, this: <Self as CubeType>::ExpandType, other: <Self as CubeType>::ExpandType, ) -> <Self as CubeType>::ExpandType

Source§

fn __expand_is_in_bounds( scope: &mut Scope, pos: <Self as CubeType>::ExpandType, bounds: <Self as CubeType>::ExpandType, ) -> <bool as CubeType>::ExpandType

Source§

fn __expand_from_int( scope: &mut Scope, _this: <Self as CubeType>::ExpandType, value: i64, ) -> <Self as CubeType>::ExpandType

Source§

impl Coordinates for u32

Source§

fn add(this: Self, other: Self) -> Self

Source§

fn sub(this: Self, other: Self) -> Self

Source§

fn min(this: Self, other: Self) -> Self

Source§

fn max(this: Self, other: Self) -> Self

Source§

fn is_in_bounds(pos: &Self, bounds: &Self) -> bool

Source§

fn from_int(_this: &Self, value: i64) -> Self

Source§

fn __expand_add( scope: &mut Scope, this: <Self as CubeType>::ExpandType, other: <Self as CubeType>::ExpandType, ) -> <Self as CubeType>::ExpandType

Source§

fn __expand_sub( scope: &mut Scope, this: <Self as CubeType>::ExpandType, other: <Self as CubeType>::ExpandType, ) -> <Self as CubeType>::ExpandType

Source§

fn __expand_min( scope: &mut Scope, this: <Self as CubeType>::ExpandType, other: <Self as CubeType>::ExpandType, ) -> <Self as CubeType>::ExpandType

Source§

fn __expand_max( scope: &mut Scope, this: <Self as CubeType>::ExpandType, other: <Self as CubeType>::ExpandType, ) -> <Self as CubeType>::ExpandType

Source§

fn __expand_is_in_bounds( scope: &mut Scope, pos: <Self as CubeType>::ExpandType, bounds: <Self as CubeType>::ExpandType, ) -> <bool as CubeType>::ExpandType

Source§

fn __expand_from_int( scope: &mut Scope, _this: <Self as CubeType>::ExpandType, value: i64, ) -> <Self as CubeType>::ExpandType

Source§

impl Coordinates for u64

Source§

fn add(this: Self, other: Self) -> Self

Source§

fn sub(this: Self, other: Self) -> Self

Source§

fn min(this: Self, other: Self) -> Self

Source§

fn max(this: Self, other: Self) -> Self

Source§

fn is_in_bounds(pos: &Self, bounds: &Self) -> bool

Source§

fn from_int(_this: &Self, value: i64) -> Self

Source§

fn __expand_add( scope: &mut Scope, this: <Self as CubeType>::ExpandType, other: <Self as CubeType>::ExpandType, ) -> <Self as CubeType>::ExpandType

Source§

fn __expand_sub( scope: &mut Scope, this: <Self as CubeType>::ExpandType, other: <Self as CubeType>::ExpandType, ) -> <Self as CubeType>::ExpandType

Source§

fn __expand_min( scope: &mut Scope, this: <Self as CubeType>::ExpandType, other: <Self as CubeType>::ExpandType, ) -> <Self as CubeType>::ExpandType

Source§

fn __expand_max( scope: &mut Scope, this: <Self as CubeType>::ExpandType, other: <Self as CubeType>::ExpandType, ) -> <Self as CubeType>::ExpandType

Source§

fn __expand_is_in_bounds( scope: &mut Scope, pos: <Self as CubeType>::ExpandType, bounds: <Self as CubeType>::ExpandType, ) -> <bool as CubeType>::ExpandType

Source§

fn __expand_from_int( scope: &mut Scope, _this: <Self as CubeType>::ExpandType, value: i64, ) -> <Self as CubeType>::ExpandType

Source§

impl<T0: Coordinates, T1: Coordinates> Coordinates for (T0, T1)

Source§

fn add(this: Self, other: Self) -> Self

Source§

fn sub(this: Self, other: Self) -> Self

Source§

fn min(this: Self, other: Self) -> Self

Source§

fn max(this: Self, other: Self) -> Self

Source§

fn is_in_bounds(this: &Self, other: &Self) -> bool

Source§

fn from_int(this: &Self, value: i64) -> Self

Source§

fn __expand_add( scope: &mut Scope, this: <Self as CubeType>::ExpandType, other: <Self as CubeType>::ExpandType, ) -> <Self as CubeType>::ExpandType

Source§

fn __expand_sub( scope: &mut Scope, this: <Self as CubeType>::ExpandType, other: <Self as CubeType>::ExpandType, ) -> <Self as CubeType>::ExpandType

Source§

fn __expand_min( scope: &mut Scope, this: <Self as CubeType>::ExpandType, other: <Self as CubeType>::ExpandType, ) -> <Self as CubeType>::ExpandType

Source§

fn __expand_max( scope: &mut Scope, this: <Self as CubeType>::ExpandType, other: <Self as CubeType>::ExpandType, ) -> <Self as CubeType>::ExpandType

Source§

fn __expand_is_in_bounds( scope: &mut Scope, this: <Self as CubeType>::ExpandType, other: <Self as CubeType>::ExpandType, ) -> <bool as CubeType>::ExpandType

Source§

fn __expand_from_int( scope: &mut Scope, this: <Self as CubeType>::ExpandType, value: i64, ) -> <Self as CubeType>::ExpandType

Source§

impl<T0: Coordinates, T1: Coordinates, T2: Coordinates> Coordinates for (T0, T1, T2)

Source§

fn add(this: Self, other: Self) -> Self

Source§

fn sub(this: Self, other: Self) -> Self

Source§

fn min(this: Self, other: Self) -> Self

Source§

fn max(this: Self, other: Self) -> Self

Source§

fn is_in_bounds(this: &Self, other: &Self) -> bool

Source§

fn from_int(this: &Self, value: i64) -> Self

Source§

fn __expand_add( scope: &mut Scope, this: <Self as CubeType>::ExpandType, other: <Self as CubeType>::ExpandType, ) -> <Self as CubeType>::ExpandType

Source§

fn __expand_sub( scope: &mut Scope, this: <Self as CubeType>::ExpandType, other: <Self as CubeType>::ExpandType, ) -> <Self as CubeType>::ExpandType

Source§

fn __expand_min( scope: &mut Scope, this: <Self as CubeType>::ExpandType, other: <Self as CubeType>::ExpandType, ) -> <Self as CubeType>::ExpandType

Source§

fn __expand_max( scope: &mut Scope, this: <Self as CubeType>::ExpandType, other: <Self as CubeType>::ExpandType, ) -> <Self as CubeType>::ExpandType

Source§

fn __expand_is_in_bounds( scope: &mut Scope, this: <Self as CubeType>::ExpandType, other: <Self as CubeType>::ExpandType, ) -> <bool as CubeType>::ExpandType

Source§

fn __expand_from_int( scope: &mut Scope, this: <Self as CubeType>::ExpandType, value: i64, ) -> <Self as CubeType>::ExpandType

Source§

impl<T0: Coordinates, T1: Coordinates, T2: Coordinates, T3: Coordinates> Coordinates for (T0, T1, T2, T3)

Source§

fn add(this: Self, other: Self) -> Self

Source§

fn sub(this: Self, other: Self) -> Self

Source§

fn min(this: Self, other: Self) -> Self

Source§

fn max(this: Self, other: Self) -> Self

Source§

fn is_in_bounds(this: &Self, other: &Self) -> bool

Source§

fn from_int(this: &Self, value: i64) -> Self

Source§

fn __expand_add( scope: &mut Scope, this: <Self as CubeType>::ExpandType, other: <Self as CubeType>::ExpandType, ) -> <Self as CubeType>::ExpandType

Source§

fn __expand_sub( scope: &mut Scope, this: <Self as CubeType>::ExpandType, other: <Self as CubeType>::ExpandType, ) -> <Self as CubeType>::ExpandType

Source§

fn __expand_min( scope: &mut Scope, this: <Self as CubeType>::ExpandType, other: <Self as CubeType>::ExpandType, ) -> <Self as CubeType>::ExpandType

Source§

fn __expand_max( scope: &mut Scope, this: <Self as CubeType>::ExpandType, other: <Self as CubeType>::ExpandType, ) -> <Self as CubeType>::ExpandType

Source§

fn __expand_is_in_bounds( scope: &mut Scope, this: <Self as CubeType>::ExpandType, other: <Self as CubeType>::ExpandType, ) -> <bool as CubeType>::ExpandType

Source§

fn __expand_from_int( scope: &mut Scope, this: <Self as CubeType>::ExpandType, value: i64, ) -> <Self as CubeType>::ExpandType

Source§

impl<T0: Coordinates, T1: Coordinates, T2: Coordinates, T3: Coordinates, T4: Coordinates> Coordinates for (T0, T1, T2, T3, T4)

Source§

fn add(this: Self, other: Self) -> Self

Source§

fn sub(this: Self, other: Self) -> Self

Source§

fn min(this: Self, other: Self) -> Self

Source§

fn max(this: Self, other: Self) -> Self

Source§

fn is_in_bounds(this: &Self, other: &Self) -> bool

Source§

fn from_int(this: &Self, value: i64) -> Self

Source§

fn __expand_add( scope: &mut Scope, this: <Self as CubeType>::ExpandType, other: <Self as CubeType>::ExpandType, ) -> <Self as CubeType>::ExpandType

Source§

fn __expand_sub( scope: &mut Scope, this: <Self as CubeType>::ExpandType, other: <Self as CubeType>::ExpandType, ) -> <Self as CubeType>::ExpandType

Source§

fn __expand_min( scope: &mut Scope, this: <Self as CubeType>::ExpandType, other: <Self as CubeType>::ExpandType, ) -> <Self as CubeType>::ExpandType

Source§

fn __expand_max( scope: &mut Scope, this: <Self as CubeType>::ExpandType, other: <Self as CubeType>::ExpandType, ) -> <Self as CubeType>::ExpandType

Source§

fn __expand_is_in_bounds( scope: &mut Scope, this: <Self as CubeType>::ExpandType, other: <Self as CubeType>::ExpandType, ) -> <bool as CubeType>::ExpandType

Source§

fn __expand_from_int( scope: &mut Scope, this: <Self as CubeType>::ExpandType, value: i64, ) -> <Self as CubeType>::ExpandType

Source§

impl<T0: Coordinates, T1: Coordinates, T2: Coordinates, T3: Coordinates, T4: Coordinates, T5: Coordinates> Coordinates for (T0, T1, T2, T3, T4, T5)

Source§

fn add(this: Self, other: Self) -> Self

Source§

fn sub(this: Self, other: Self) -> Self

Source§

fn min(this: Self, other: Self) -> Self

Source§

fn max(this: Self, other: Self) -> Self

Source§

fn is_in_bounds(this: &Self, other: &Self) -> bool

Source§

fn from_int(this: &Self, value: i64) -> Self

Source§

fn __expand_add( scope: &mut Scope, this: <Self as CubeType>::ExpandType, other: <Self as CubeType>::ExpandType, ) -> <Self as CubeType>::ExpandType

Source§

fn __expand_sub( scope: &mut Scope, this: <Self as CubeType>::ExpandType, other: <Self as CubeType>::ExpandType, ) -> <Self as CubeType>::ExpandType

Source§

fn __expand_min( scope: &mut Scope, this: <Self as CubeType>::ExpandType, other: <Self as CubeType>::ExpandType, ) -> <Self as CubeType>::ExpandType

Source§

fn __expand_max( scope: &mut Scope, this: <Self as CubeType>::ExpandType, other: <Self as CubeType>::ExpandType, ) -> <Self as CubeType>::ExpandType

Source§

fn __expand_is_in_bounds( scope: &mut Scope, this: <Self as CubeType>::ExpandType, other: <Self as CubeType>::ExpandType, ) -> <bool as CubeType>::ExpandType

Source§

fn __expand_from_int( scope: &mut Scope, this: <Self as CubeType>::ExpandType, value: i64, ) -> <Self as CubeType>::ExpandType

Source§

impl<T0: Coordinates, T1: Coordinates, T2: Coordinates, T3: Coordinates, T4: Coordinates, T5: Coordinates, T6: Coordinates> Coordinates for (T0, T1, T2, T3, T4, T5, T6)

Source§

fn add(this: Self, other: Self) -> Self

Source§

fn sub(this: Self, other: Self) -> Self

Source§

fn min(this: Self, other: Self) -> Self

Source§

fn max(this: Self, other: Self) -> Self

Source§

fn is_in_bounds(this: &Self, other: &Self) -> bool

Source§

fn from_int(this: &Self, value: i64) -> Self

Source§

fn __expand_add( scope: &mut Scope, this: <Self as CubeType>::ExpandType, other: <Self as CubeType>::ExpandType, ) -> <Self as CubeType>::ExpandType

Source§

fn __expand_sub( scope: &mut Scope, this: <Self as CubeType>::ExpandType, other: <Self as CubeType>::ExpandType, ) -> <Self as CubeType>::ExpandType

Source§

fn __expand_min( scope: &mut Scope, this: <Self as CubeType>::ExpandType, other: <Self as CubeType>::ExpandType, ) -> <Self as CubeType>::ExpandType

Source§

fn __expand_max( scope: &mut Scope, this: <Self as CubeType>::ExpandType, other: <Self as CubeType>::ExpandType, ) -> <Self as CubeType>::ExpandType

Source§

fn __expand_is_in_bounds( scope: &mut Scope, this: <Self as CubeType>::ExpandType, other: <Self as CubeType>::ExpandType, ) -> <bool as CubeType>::ExpandType

Source§

fn __expand_from_int( scope: &mut Scope, this: <Self as CubeType>::ExpandType, value: i64, ) -> <Self as CubeType>::ExpandType

Source§

impl<T0: Coordinates, T1: Coordinates, T2: Coordinates, T3: Coordinates, T4: Coordinates, T5: Coordinates, T6: Coordinates, T7: Coordinates> Coordinates for (T0, T1, T2, T3, T4, T5, T6, T7)

Source§

fn add(this: Self, other: Self) -> Self

Source§

fn sub(this: Self, other: Self) -> Self

Source§

fn min(this: Self, other: Self) -> Self

Source§

fn max(this: Self, other: Self) -> Self

Source§

fn is_in_bounds(this: &Self, other: &Self) -> bool

Source§

fn from_int(this: &Self, value: i64) -> Self

Source§

fn __expand_add( scope: &mut Scope, this: <Self as CubeType>::ExpandType, other: <Self as CubeType>::ExpandType, ) -> <Self as CubeType>::ExpandType

Source§

fn __expand_sub( scope: &mut Scope, this: <Self as CubeType>::ExpandType, other: <Self as CubeType>::ExpandType, ) -> <Self as CubeType>::ExpandType

Source§

fn __expand_min( scope: &mut Scope, this: <Self as CubeType>::ExpandType, other: <Self as CubeType>::ExpandType, ) -> <Self as CubeType>::ExpandType

Source§

fn __expand_max( scope: &mut Scope, this: <Self as CubeType>::ExpandType, other: <Self as CubeType>::ExpandType, ) -> <Self as CubeType>::ExpandType

Source§

fn __expand_is_in_bounds( scope: &mut Scope, this: <Self as CubeType>::ExpandType, other: <Self as CubeType>::ExpandType, ) -> <bool as CubeType>::ExpandType

Source§

fn __expand_from_int( scope: &mut Scope, this: <Self as CubeType>::ExpandType, value: i64, ) -> <Self as CubeType>::ExpandType

Source§

impl<T0: Coordinates, T1: Coordinates, T2: Coordinates, T3: Coordinates, T4: Coordinates, T5: Coordinates, T6: Coordinates, T7: Coordinates, T8: Coordinates> Coordinates for (T0, T1, T2, T3, T4, T5, T6, T7, T8)

Source§

fn add(this: Self, other: Self) -> Self

Source§

fn sub(this: Self, other: Self) -> Self

Source§

fn min(this: Self, other: Self) -> Self

Source§

fn max(this: Self, other: Self) -> Self

Source§

fn is_in_bounds(this: &Self, other: &Self) -> bool

Source§

fn from_int(this: &Self, value: i64) -> Self

Source§

fn __expand_add( scope: &mut Scope, this: <Self as CubeType>::ExpandType, other: <Self as CubeType>::ExpandType, ) -> <Self as CubeType>::ExpandType

Source§

fn __expand_sub( scope: &mut Scope, this: <Self as CubeType>::ExpandType, other: <Self as CubeType>::ExpandType, ) -> <Self as CubeType>::ExpandType

Source§

fn __expand_min( scope: &mut Scope, this: <Self as CubeType>::ExpandType, other: <Self as CubeType>::ExpandType, ) -> <Self as CubeType>::ExpandType

Source§

fn __expand_max( scope: &mut Scope, this: <Self as CubeType>::ExpandType, other: <Self as CubeType>::ExpandType, ) -> <Self as CubeType>::ExpandType

Source§

fn __expand_is_in_bounds( scope: &mut Scope, this: <Self as CubeType>::ExpandType, other: <Self as CubeType>::ExpandType, ) -> <bool as CubeType>::ExpandType

Source§

fn __expand_from_int( scope: &mut Scope, this: <Self as CubeType>::ExpandType, value: i64, ) -> <Self as CubeType>::ExpandType

Source§

impl<T0: Coordinates, T1: Coordinates, T2: Coordinates, T3: Coordinates, T4: Coordinates, T5: Coordinates, T6: Coordinates, T7: Coordinates, T8: Coordinates, T9: Coordinates> Coordinates for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9)

Source§

fn add(this: Self, other: Self) -> Self

Source§

fn sub(this: Self, other: Self) -> Self

Source§

fn min(this: Self, other: Self) -> Self

Source§

fn max(this: Self, other: Self) -> Self

Source§

fn is_in_bounds(this: &Self, other: &Self) -> bool

Source§

fn from_int(this: &Self, value: i64) -> Self

Source§

fn __expand_add( scope: &mut Scope, this: <Self as CubeType>::ExpandType, other: <Self as CubeType>::ExpandType, ) -> <Self as CubeType>::ExpandType

Source§

fn __expand_sub( scope: &mut Scope, this: <Self as CubeType>::ExpandType, other: <Self as CubeType>::ExpandType, ) -> <Self as CubeType>::ExpandType

Source§

fn __expand_min( scope: &mut Scope, this: <Self as CubeType>::ExpandType, other: <Self as CubeType>::ExpandType, ) -> <Self as CubeType>::ExpandType

Source§

fn __expand_max( scope: &mut Scope, this: <Self as CubeType>::ExpandType, other: <Self as CubeType>::ExpandType, ) -> <Self as CubeType>::ExpandType

Source§

fn __expand_is_in_bounds( scope: &mut Scope, this: <Self as CubeType>::ExpandType, other: <Self as CubeType>::ExpandType, ) -> <bool as CubeType>::ExpandType

Source§

fn __expand_from_int( scope: &mut Scope, this: <Self as CubeType>::ExpandType, value: i64, ) -> <Self as CubeType>::ExpandType

Source§

impl<T0: Coordinates, T1: Coordinates, T2: Coordinates, T3: Coordinates, T4: Coordinates, T5: Coordinates, T6: Coordinates, T7: Coordinates, T8: Coordinates, T9: Coordinates, T10: Coordinates> Coordinates for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)

Source§

fn add(this: Self, other: Self) -> Self

Source§

fn sub(this: Self, other: Self) -> Self

Source§

fn min(this: Self, other: Self) -> Self

Source§

fn max(this: Self, other: Self) -> Self

Source§

fn is_in_bounds(this: &Self, other: &Self) -> bool

Source§

fn from_int(this: &Self, value: i64) -> Self

Source§

fn __expand_add( scope: &mut Scope, this: <Self as CubeType>::ExpandType, other: <Self as CubeType>::ExpandType, ) -> <Self as CubeType>::ExpandType

Source§

fn __expand_sub( scope: &mut Scope, this: <Self as CubeType>::ExpandType, other: <Self as CubeType>::ExpandType, ) -> <Self as CubeType>::ExpandType

Source§

fn __expand_min( scope: &mut Scope, this: <Self as CubeType>::ExpandType, other: <Self as CubeType>::ExpandType, ) -> <Self as CubeType>::ExpandType

Source§

fn __expand_max( scope: &mut Scope, this: <Self as CubeType>::ExpandType, other: <Self as CubeType>::ExpandType, ) -> <Self as CubeType>::ExpandType

Source§

fn __expand_is_in_bounds( scope: &mut Scope, this: <Self as CubeType>::ExpandType, other: <Self as CubeType>::ExpandType, ) -> <bool as CubeType>::ExpandType

Source§

fn __expand_from_int( scope: &mut Scope, this: <Self as CubeType>::ExpandType, value: i64, ) -> <Self as CubeType>::ExpandType

Source§

impl<T0: Coordinates, T1: Coordinates, T2: Coordinates, T3: Coordinates, T4: Coordinates, T5: Coordinates, T6: Coordinates, T7: Coordinates, T8: Coordinates, T9: Coordinates, T10: Coordinates, T11: Coordinates> Coordinates for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11)

Source§

fn add(this: Self, other: Self) -> Self

Source§

fn sub(this: Self, other: Self) -> Self

Source§

fn min(this: Self, other: Self) -> Self

Source§

fn max(this: Self, other: Self) -> Self

Source§

fn is_in_bounds(this: &Self, other: &Self) -> bool

Source§

fn from_int(this: &Self, value: i64) -> Self

Source§

fn __expand_add( scope: &mut Scope, this: <Self as CubeType>::ExpandType, other: <Self as CubeType>::ExpandType, ) -> <Self as CubeType>::ExpandType

Source§

fn __expand_sub( scope: &mut Scope, this: <Self as CubeType>::ExpandType, other: <Self as CubeType>::ExpandType, ) -> <Self as CubeType>::ExpandType

Source§

fn __expand_min( scope: &mut Scope, this: <Self as CubeType>::ExpandType, other: <Self as CubeType>::ExpandType, ) -> <Self as CubeType>::ExpandType

Source§

fn __expand_max( scope: &mut Scope, this: <Self as CubeType>::ExpandType, other: <Self as CubeType>::ExpandType, ) -> <Self as CubeType>::ExpandType

Source§

fn __expand_is_in_bounds( scope: &mut Scope, this: <Self as CubeType>::ExpandType, other: <Self as CubeType>::ExpandType, ) -> <bool as CubeType>::ExpandType

Source§

fn __expand_from_int( scope: &mut Scope, this: <Self as CubeType>::ExpandType, value: i64, ) -> <Self as CubeType>::ExpandType

Source§

impl<T: Coordinates + Copy> Coordinates for Sequence<T>

Source§

fn add(this: Self, other: Self) -> Self

Source§

fn sub(this: Self, other: Self) -> Self

Source§

fn min(this: Self, other: Self) -> Self

Source§

fn max(this: Self, other: Self) -> Self

Source§

fn is_in_bounds(pos: &Self, bounds: &Self) -> bool

Source§

fn from_int(this: &Self, value: i64) -> Self

Source§

fn __expand_add( scope: &mut Scope, this: <Self as CubeType>::ExpandType, other: <Self as CubeType>::ExpandType, ) -> <Self as CubeType>::ExpandType

Source§

fn __expand_sub( scope: &mut Scope, this: <Self as CubeType>::ExpandType, other: <Self as CubeType>::ExpandType, ) -> <Self as CubeType>::ExpandType

Source§

fn __expand_min( scope: &mut Scope, this: <Self as CubeType>::ExpandType, other: <Self as CubeType>::ExpandType, ) -> <Self as CubeType>::ExpandType

Source§

fn __expand_max( scope: &mut Scope, this: <Self as CubeType>::ExpandType, other: <Self as CubeType>::ExpandType, ) -> <Self as CubeType>::ExpandType

Source§

fn __expand_is_in_bounds( scope: &mut Scope, pos: <Self as CubeType>::ExpandType, bounds: <Self as CubeType>::ExpandType, ) -> <bool as CubeType>::ExpandType

Source§

fn __expand_from_int( scope: &mut Scope, this: <Self as CubeType>::ExpandType, value: i64, ) -> <Self as CubeType>::ExpandType

Implementors§