RuntimePow2Shape

Struct RuntimePow2Shape 

Source
pub struct RuntimePow2Shape<C, const N: usize> { /* private fields */ }

Implementations§

Source§

impl RuntimePow2Shape<u8, 2>

Source

pub fn new([x, y]: [u8; 2]) -> Self

Source§

impl RuntimePow2Shape<u16, 2>

Source

pub fn new([x, y]: [u16; 2]) -> Self

Source§

impl RuntimePow2Shape<u32, 2>

Source

pub fn new([x, y]: [u32; 2]) -> Self

Source§

impl RuntimePow2Shape<u64, 2>

Source

pub fn new([x, y]: [u64; 2]) -> Self

Source§

impl RuntimePow2Shape<usize, 2>

Source

pub fn new([x, y]: [usize; 2]) -> Self

Source§

impl RuntimePow2Shape<i8, 2>

Source

pub fn new([x, y]: [i8; 2]) -> Self

Source§

impl RuntimePow2Shape<i16, 2>

Source

pub fn new([x, y]: [i16; 2]) -> Self

Source§

impl RuntimePow2Shape<i32, 2>

Source

pub fn new([x, y]: [i32; 2]) -> Self

Source§

impl RuntimePow2Shape<i64, 2>

Source

pub fn new([x, y]: [i64; 2]) -> Self

Source§

impl RuntimePow2Shape<u8, 3>

Source

pub fn new([x, y, z]: [u8; 3]) -> Self

Source§

impl RuntimePow2Shape<u16, 3>

Source

pub fn new([x, y, z]: [u16; 3]) -> Self

Source§

impl RuntimePow2Shape<u32, 3>

Source

pub fn new([x, y, z]: [u32; 3]) -> Self

Source§

impl RuntimePow2Shape<u64, 3>

Source

pub fn new([x, y, z]: [u64; 3]) -> Self

Source§

impl RuntimePow2Shape<usize, 3>

Source

pub fn new([x, y, z]: [usize; 3]) -> Self

Source§

impl RuntimePow2Shape<i8, 3>

Source

pub fn new([x, y, z]: [i8; 3]) -> Self

Source§

impl RuntimePow2Shape<i16, 3>

Source

pub fn new([x, y, z]: [i16; 3]) -> Self

Source§

impl RuntimePow2Shape<i32, 3>

Source

pub fn new([x, y, z]: [i32; 3]) -> Self

Source§

impl RuntimePow2Shape<i64, 3>

Source

pub fn new([x, y, z]: [i64; 3]) -> Self

Source§

impl RuntimePow2Shape<u8, 4>

Source

pub fn new([x, y, z, w]: [u8; 4]) -> Self

Source§

impl RuntimePow2Shape<u16, 4>

Source

pub fn new([x, y, z, w]: [u16; 4]) -> Self

Source§

impl RuntimePow2Shape<u32, 4>

Source

pub fn new([x, y, z, w]: [u32; 4]) -> Self

Source§

impl RuntimePow2Shape<u64, 4>

Source

pub fn new([x, y, z, w]: [u64; 4]) -> Self

Source§

impl RuntimePow2Shape<usize, 4>

Source

pub fn new([x, y, z, w]: [usize; 4]) -> Self

Source§

impl RuntimePow2Shape<i8, 4>

Source

pub fn new([x, y, z, w]: [i8; 4]) -> Self

Source§

impl RuntimePow2Shape<i16, 4>

Source

pub fn new([x, y, z, w]: [i16; 4]) -> Self

Source§

impl RuntimePow2Shape<i32, 4>

Source

pub fn new([x, y, z, w]: [i32; 4]) -> Self

Source§

impl RuntimePow2Shape<i64, 4>

Source

pub fn new([x, y, z, w]: [i64; 4]) -> Self

Trait Implementations§

Source§

impl<C: Clone, const N: usize> Clone for RuntimePow2Shape<C, N>

Source§

fn clone(&self) -> RuntimePow2Shape<C, N>

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Shape<2> for RuntimePow2Shape<i16, 2>

Source§

type Coord = i16

Source§

fn as_array(&self) -> [i16; 2]

The dimensions of the shape.
Source§

fn size(&self) -> i16

The number of elements in an array with this shape.
Source§

fn usize(&self) -> usize

The same as self.size() as usize.
Source§

fn linearize(&self, p: [i16; 2]) -> i16

Translate an N-dimensional vector into a single number T that can be used for linear indexing.
Source§

fn delinearize(&self, i: i16) -> [i16; 2]

The inverse of linearize.
Source§

impl Shape<2> for RuntimePow2Shape<i32, 2>

Source§

type Coord = i32

Source§

fn as_array(&self) -> [i32; 2]

The dimensions of the shape.
Source§

fn size(&self) -> i32

The number of elements in an array with this shape.
Source§

fn usize(&self) -> usize

The same as self.size() as usize.
Source§

fn linearize(&self, p: [i32; 2]) -> i32

Translate an N-dimensional vector into a single number T that can be used for linear indexing.
Source§

fn delinearize(&self, i: i32) -> [i32; 2]

The inverse of linearize.
Source§

impl Shape<2> for RuntimePow2Shape<i64, 2>

Source§

type Coord = i64

Source§

fn as_array(&self) -> [i64; 2]

The dimensions of the shape.
Source§

fn size(&self) -> i64

The number of elements in an array with this shape.
Source§

fn usize(&self) -> usize

The same as self.size() as usize.
Source§

fn linearize(&self, p: [i64; 2]) -> i64

Translate an N-dimensional vector into a single number T that can be used for linear indexing.
Source§

fn delinearize(&self, i: i64) -> [i64; 2]

The inverse of linearize.
Source§

impl Shape<2> for RuntimePow2Shape<i8, 2>

Source§

type Coord = i8

Source§

fn as_array(&self) -> [i8; 2]

The dimensions of the shape.
Source§

fn size(&self) -> i8

The number of elements in an array with this shape.
Source§

fn usize(&self) -> usize

The same as self.size() as usize.
Source§

fn linearize(&self, p: [i8; 2]) -> i8

Translate an N-dimensional vector into a single number T that can be used for linear indexing.
Source§

fn delinearize(&self, i: i8) -> [i8; 2]

The inverse of linearize.
Source§

impl Shape<2> for RuntimePow2Shape<u16, 2>

Source§

type Coord = u16

Source§

fn as_array(&self) -> [u16; 2]

The dimensions of the shape.
Source§

fn size(&self) -> u16

The number of elements in an array with this shape.
Source§

fn usize(&self) -> usize

The same as self.size() as usize.
Source§

fn linearize(&self, p: [u16; 2]) -> u16

Translate an N-dimensional vector into a single number T that can be used for linear indexing.
Source§

fn delinearize(&self, i: u16) -> [u16; 2]

The inverse of linearize.
Source§

impl Shape<2> for RuntimePow2Shape<u32, 2>

Source§

type Coord = u32

Source§

fn as_array(&self) -> [u32; 2]

The dimensions of the shape.
Source§

fn size(&self) -> u32

The number of elements in an array with this shape.
Source§

fn usize(&self) -> usize

The same as self.size() as usize.
Source§

fn linearize(&self, p: [u32; 2]) -> u32

Translate an N-dimensional vector into a single number T that can be used for linear indexing.
Source§

fn delinearize(&self, i: u32) -> [u32; 2]

The inverse of linearize.
Source§

impl Shape<2> for RuntimePow2Shape<u64, 2>

Source§

type Coord = u64

Source§

fn as_array(&self) -> [u64; 2]

The dimensions of the shape.
Source§

fn size(&self) -> u64

The number of elements in an array with this shape.
Source§

fn usize(&self) -> usize

The same as self.size() as usize.
Source§

fn linearize(&self, p: [u64; 2]) -> u64

Translate an N-dimensional vector into a single number T that can be used for linear indexing.
Source§

fn delinearize(&self, i: u64) -> [u64; 2]

The inverse of linearize.
Source§

impl Shape<2> for RuntimePow2Shape<u8, 2>

Source§

type Coord = u8

Source§

fn as_array(&self) -> [u8; 2]

The dimensions of the shape.
Source§

fn size(&self) -> u8

The number of elements in an array with this shape.
Source§

fn usize(&self) -> usize

The same as self.size() as usize.
Source§

fn linearize(&self, p: [u8; 2]) -> u8

Translate an N-dimensional vector into a single number T that can be used for linear indexing.
Source§

fn delinearize(&self, i: u8) -> [u8; 2]

The inverse of linearize.
Source§

impl Shape<2> for RuntimePow2Shape<usize, 2>

Source§

type Coord = usize

Source§

fn as_array(&self) -> [usize; 2]

The dimensions of the shape.
Source§

fn size(&self) -> usize

The number of elements in an array with this shape.
Source§

fn usize(&self) -> usize

The same as self.size() as usize.
Source§

fn linearize(&self, p: [usize; 2]) -> usize

Translate an N-dimensional vector into a single number T that can be used for linear indexing.
Source§

fn delinearize(&self, i: usize) -> [usize; 2]

The inverse of linearize.
Source§

impl Shape<3> for RuntimePow2Shape<i16, 3>

Source§

type Coord = i16

Source§

fn as_array(&self) -> [i16; 3]

The dimensions of the shape.
Source§

fn size(&self) -> i16

The number of elements in an array with this shape.
Source§

fn usize(&self) -> usize

The same as self.size() as usize.
Source§

fn linearize(&self, p: [i16; 3]) -> i16

Translate an N-dimensional vector into a single number T that can be used for linear indexing.
Source§

fn delinearize(&self, i: i16) -> [i16; 3]

The inverse of linearize.
Source§

impl Shape<3> for RuntimePow2Shape<i32, 3>

Source§

type Coord = i32

Source§

fn as_array(&self) -> [i32; 3]

The dimensions of the shape.
Source§

fn size(&self) -> i32

The number of elements in an array with this shape.
Source§

fn usize(&self) -> usize

The same as self.size() as usize.
Source§

fn linearize(&self, p: [i32; 3]) -> i32

Translate an N-dimensional vector into a single number T that can be used for linear indexing.
Source§

fn delinearize(&self, i: i32) -> [i32; 3]

The inverse of linearize.
Source§

impl Shape<3> for RuntimePow2Shape<i64, 3>

Source§

type Coord = i64

Source§

fn as_array(&self) -> [i64; 3]

The dimensions of the shape.
Source§

fn size(&self) -> i64

The number of elements in an array with this shape.
Source§

fn usize(&self) -> usize

The same as self.size() as usize.
Source§

fn linearize(&self, p: [i64; 3]) -> i64

Translate an N-dimensional vector into a single number T that can be used for linear indexing.
Source§

fn delinearize(&self, i: i64) -> [i64; 3]

The inverse of linearize.
Source§

impl Shape<3> for RuntimePow2Shape<i8, 3>

Source§

type Coord = i8

Source§

fn as_array(&self) -> [i8; 3]

The dimensions of the shape.
Source§

fn size(&self) -> i8

The number of elements in an array with this shape.
Source§

fn usize(&self) -> usize

The same as self.size() as usize.
Source§

fn linearize(&self, p: [i8; 3]) -> i8

Translate an N-dimensional vector into a single number T that can be used for linear indexing.
Source§

fn delinearize(&self, i: i8) -> [i8; 3]

The inverse of linearize.
Source§

impl Shape<3> for RuntimePow2Shape<u16, 3>

Source§

type Coord = u16

Source§

fn as_array(&self) -> [u16; 3]

The dimensions of the shape.
Source§

fn size(&self) -> u16

The number of elements in an array with this shape.
Source§

fn usize(&self) -> usize

The same as self.size() as usize.
Source§

fn linearize(&self, p: [u16; 3]) -> u16

Translate an N-dimensional vector into a single number T that can be used for linear indexing.
Source§

fn delinearize(&self, i: u16) -> [u16; 3]

The inverse of linearize.
Source§

impl Shape<3> for RuntimePow2Shape<u32, 3>

Source§

type Coord = u32

Source§

fn as_array(&self) -> [u32; 3]

The dimensions of the shape.
Source§

fn size(&self) -> u32

The number of elements in an array with this shape.
Source§

fn usize(&self) -> usize

The same as self.size() as usize.
Source§

fn linearize(&self, p: [u32; 3]) -> u32

Translate an N-dimensional vector into a single number T that can be used for linear indexing.
Source§

fn delinearize(&self, i: u32) -> [u32; 3]

The inverse of linearize.
Source§

impl Shape<3> for RuntimePow2Shape<u64, 3>

Source§

type Coord = u64

Source§

fn as_array(&self) -> [u64; 3]

The dimensions of the shape.
Source§

fn size(&self) -> u64

The number of elements in an array with this shape.
Source§

fn usize(&self) -> usize

The same as self.size() as usize.
Source§

fn linearize(&self, p: [u64; 3]) -> u64

Translate an N-dimensional vector into a single number T that can be used for linear indexing.
Source§

fn delinearize(&self, i: u64) -> [u64; 3]

The inverse of linearize.
Source§

impl Shape<3> for RuntimePow2Shape<u8, 3>

Source§

type Coord = u8

Source§

fn as_array(&self) -> [u8; 3]

The dimensions of the shape.
Source§

fn size(&self) -> u8

The number of elements in an array with this shape.
Source§

fn usize(&self) -> usize

The same as self.size() as usize.
Source§

fn linearize(&self, p: [u8; 3]) -> u8

Translate an N-dimensional vector into a single number T that can be used for linear indexing.
Source§

fn delinearize(&self, i: u8) -> [u8; 3]

The inverse of linearize.
Source§

impl Shape<3> for RuntimePow2Shape<usize, 3>

Source§

type Coord = usize

Source§

fn as_array(&self) -> [usize; 3]

The dimensions of the shape.
Source§

fn size(&self) -> usize

The number of elements in an array with this shape.
Source§

fn usize(&self) -> usize

The same as self.size() as usize.
Source§

fn linearize(&self, p: [usize; 3]) -> usize

Translate an N-dimensional vector into a single number T that can be used for linear indexing.
Source§

fn delinearize(&self, i: usize) -> [usize; 3]

The inverse of linearize.
Source§

impl Shape<4> for RuntimePow2Shape<i16, 4>

Source§

type Coord = i16

Source§

fn as_array(&self) -> [i16; 4]

The dimensions of the shape.
Source§

fn size(&self) -> i16

The number of elements in an array with this shape.
Source§

fn usize(&self) -> usize

The same as self.size() as usize.
Source§

fn linearize(&self, p: [i16; 4]) -> i16

Translate an N-dimensional vector into a single number T that can be used for linear indexing.
Source§

fn delinearize(&self, i: i16) -> [i16; 4]

The inverse of linearize.
Source§

impl Shape<4> for RuntimePow2Shape<i32, 4>

Source§

type Coord = i32

Source§

fn as_array(&self) -> [i32; 4]

The dimensions of the shape.
Source§

fn size(&self) -> i32

The number of elements in an array with this shape.
Source§

fn usize(&self) -> usize

The same as self.size() as usize.
Source§

fn linearize(&self, p: [i32; 4]) -> i32

Translate an N-dimensional vector into a single number T that can be used for linear indexing.
Source§

fn delinearize(&self, i: i32) -> [i32; 4]

The inverse of linearize.
Source§

impl Shape<4> for RuntimePow2Shape<i64, 4>

Source§

type Coord = i64

Source§

fn as_array(&self) -> [i64; 4]

The dimensions of the shape.
Source§

fn size(&self) -> i64

The number of elements in an array with this shape.
Source§

fn usize(&self) -> usize

The same as self.size() as usize.
Source§

fn linearize(&self, p: [i64; 4]) -> i64

Translate an N-dimensional vector into a single number T that can be used for linear indexing.
Source§

fn delinearize(&self, i: i64) -> [i64; 4]

The inverse of linearize.
Source§

impl Shape<4> for RuntimePow2Shape<i8, 4>

Source§

type Coord = i8

Source§

fn as_array(&self) -> [i8; 4]

The dimensions of the shape.
Source§

fn size(&self) -> i8

The number of elements in an array with this shape.
Source§

fn usize(&self) -> usize

The same as self.size() as usize.
Source§

fn linearize(&self, p: [i8; 4]) -> i8

Translate an N-dimensional vector into a single number T that can be used for linear indexing.
Source§

fn delinearize(&self, i: i8) -> [i8; 4]

The inverse of linearize.
Source§

impl Shape<4> for RuntimePow2Shape<u16, 4>

Source§

type Coord = u16

Source§

fn as_array(&self) -> [u16; 4]

The dimensions of the shape.
Source§

fn size(&self) -> u16

The number of elements in an array with this shape.
Source§

fn usize(&self) -> usize

The same as self.size() as usize.
Source§

fn linearize(&self, p: [u16; 4]) -> u16

Translate an N-dimensional vector into a single number T that can be used for linear indexing.
Source§

fn delinearize(&self, i: u16) -> [u16; 4]

The inverse of linearize.
Source§

impl Shape<4> for RuntimePow2Shape<u32, 4>

Source§

type Coord = u32

Source§

fn as_array(&self) -> [u32; 4]

The dimensions of the shape.
Source§

fn size(&self) -> u32

The number of elements in an array with this shape.
Source§

fn usize(&self) -> usize

The same as self.size() as usize.
Source§

fn linearize(&self, p: [u32; 4]) -> u32

Translate an N-dimensional vector into a single number T that can be used for linear indexing.
Source§

fn delinearize(&self, i: u32) -> [u32; 4]

The inverse of linearize.
Source§

impl Shape<4> for RuntimePow2Shape<u64, 4>

Source§

type Coord = u64

Source§

fn as_array(&self) -> [u64; 4]

The dimensions of the shape.
Source§

fn size(&self) -> u64

The number of elements in an array with this shape.
Source§

fn usize(&self) -> usize

The same as self.size() as usize.
Source§

fn linearize(&self, p: [u64; 4]) -> u64

Translate an N-dimensional vector into a single number T that can be used for linear indexing.
Source§

fn delinearize(&self, i: u64) -> [u64; 4]

The inverse of linearize.
Source§

impl Shape<4> for RuntimePow2Shape<u8, 4>

Source§

type Coord = u8

Source§

fn as_array(&self) -> [u8; 4]

The dimensions of the shape.
Source§

fn size(&self) -> u8

The number of elements in an array with this shape.
Source§

fn usize(&self) -> usize

The same as self.size() as usize.
Source§

fn linearize(&self, p: [u8; 4]) -> u8

Translate an N-dimensional vector into a single number T that can be used for linear indexing.
Source§

fn delinearize(&self, i: u8) -> [u8; 4]

The inverse of linearize.
Source§

impl Shape<4> for RuntimePow2Shape<usize, 4>

Source§

type Coord = usize

Source§

fn as_array(&self) -> [usize; 4]

The dimensions of the shape.
Source§

fn size(&self) -> usize

The number of elements in an array with this shape.
Source§

fn usize(&self) -> usize

The same as self.size() as usize.
Source§

fn linearize(&self, p: [usize; 4]) -> usize

Translate an N-dimensional vector into a single number T that can be used for linear indexing.
Source§

fn delinearize(&self, i: usize) -> [usize; 4]

The inverse of linearize.

Auto Trait Implementations§

§

impl<C, const N: usize> Freeze for RuntimePow2Shape<C, N>
where C: Freeze,

§

impl<C, const N: usize> RefUnwindSafe for RuntimePow2Shape<C, N>
where C: RefUnwindSafe,

§

impl<C, const N: usize> Send for RuntimePow2Shape<C, N>
where C: Send,

§

impl<C, const N: usize> Sync for RuntimePow2Shape<C, N>
where C: Sync,

§

impl<C, const N: usize> Unpin for RuntimePow2Shape<C, N>
where C: Unpin,

§

impl<C, const N: usize> UnwindSafe for RuntimePow2Shape<C, N>
where C: UnwindSafe,

Blanket Implementations§

Source§

impl<S, const N: usize> AbstractShape<<S as Shape<N>>::Coord, [<S as Shape<N>>::Coord; N]> for S
where S: Shape<N>,

Source§

fn size(&self) -> <S as Shape<N>>::Coord

The number of elements in an array with this shape.
Source§

fn linearize(&self, p: [<S as Shape<N>>::Coord; N]) -> <S as Shape<N>>::Coord

Translates a vector V (with an unspecified number of dimensions) into a single number T that can be used for linear indexing.
Source§

fn delinearize(&self, i: <S as Shape<N>>::Coord) -> [<S as Shape<N>>::Coord; N]

The inverse of linearize.
Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.