pub struct Const<const N: usize>;Expand description
Type-level constant.
Trait Implementations§
source§impl<const N: usize> Dim for Const<N>
impl<const N: usize> Dim for Const<N>
impl<const N: usize> Copy for Const<N>
Auto Trait Implementations§
impl<const N: usize> Freeze for Const<N>
impl<const N: usize> RefUnwindSafe for Const<N>
impl<const N: usize> Send for Const<N>
impl<const N: usize> Sync for Const<N>
impl<const N: usize> Unpin for Const<N>
impl<const N: usize> UnwindSafe for Const<N>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<T> IntoCloned<T> for T
impl<T> IntoCloned<T> for T
source§impl<S> IntoShape for Swhere
S: Shape,
impl<S> IntoShape for Swhere
S: Shape,
source§fn into_shape(self) -> S
fn into_shape(self) -> S
Creates array shape from a value.
source§impl<X> Shape for Xwhere
X: Dim,
impl<X> Shape for Xwhere
X: Dim,
§type Merge<S: Shape> = <<S as Shape>::Tail as Shape>::Prepend<<X as Dim>::Merge<<S as Shape>::Head>>
type Merge<S: Shape> = <<S as Shape>::Tail as Shape>::Prepend<<X as Dim>::Merge<<S as Shape>::Head>>
Merge each dimension pair, where constant size is preferred over dynamic.
The result has dynamic rank if at least one of the inputs has dynamic rank.
§type FromExpr<T> = <X as Dim>::FromExpr<T, ()>
type FromExpr<T> = <X as Dim>::FromExpr<T, ()>
The resulting type after conversion from an expression.
§type Layout<L: Layout, M: Layout> = L
type Layout<L: Layout, M: Layout> = L
Select layout
Dense, L, or M for rank 0, 1, or >1 respectively.source§fn from_dims(dims: [usize; 1]) -> X
fn from_dims(dims: [usize; 1]) -> X
Creates an array shape with the given dimensions. Read more