pub struct Const<const N: usize>;
Expand description
Type-level constant.
Trait Implementations§
Source§impl Axis for Const<0>
impl Axis for Const<0>
Source§impl Axis for Const<1>
impl Axis for Const<1>
Source§type Init<S: Shape> = <<Const<0> as Axis>::Init<<S as Shape>::Tail> as Shape>::Prepend<<S as Shape>::Head>
type Init<S: Shape> = <<Const<0> as Axis>::Init<<S as Shape>::Tail> as Shape>::Prepend<<S as Shape>::Head>
Shape for the previous dimensions excluding the current dimension.
Source§type Rest<S: Shape> = <Const<0> as Axis>::Rest<<S as Shape>::Tail>
type Rest<S: Shape> = <Const<0> as Axis>::Rest<<S as Shape>::Tail>
Shape for the next dimensions excluding the current dimension.
Source§type Remove<S: Shape> = <<Const<0> as Axis>::Remove<<S as Shape>::Tail> as Shape>::Prepend<<S as Shape>::Head>
type Remove<S: Shape> = <<Const<0> as Axis>::Remove<<S as Shape>::Tail> as Shape>::Prepend<<S as Shape>::Head>
Remove the dimension from the shape.
Source§impl Axis for Const<2>
impl Axis for Const<2>
Source§type Init<S: Shape> = <<Const<1> as Axis>::Init<<S as Shape>::Tail> as Shape>::Prepend<<S as Shape>::Head>
type Init<S: Shape> = <<Const<1> as Axis>::Init<<S as Shape>::Tail> as Shape>::Prepend<<S as Shape>::Head>
Shape for the previous dimensions excluding the current dimension.
Source§type Rest<S: Shape> = <Const<1> as Axis>::Rest<<S as Shape>::Tail>
type Rest<S: Shape> = <Const<1> as Axis>::Rest<<S as Shape>::Tail>
Shape for the next dimensions excluding the current dimension.
Source§type Remove<S: Shape> = <<Const<1> as Axis>::Remove<<S as Shape>::Tail> as Shape>::Prepend<<S as Shape>::Head>
type Remove<S: Shape> = <<Const<1> as Axis>::Remove<<S as Shape>::Tail> as Shape>::Prepend<<S as Shape>::Head>
Remove the dimension from the shape.
Source§impl Axis for Const<3>
impl Axis for Const<3>
Source§type Init<S: Shape> = <<Const<2> as Axis>::Init<<S as Shape>::Tail> as Shape>::Prepend<<S as Shape>::Head>
type Init<S: Shape> = <<Const<2> as Axis>::Init<<S as Shape>::Tail> as Shape>::Prepend<<S as Shape>::Head>
Shape for the previous dimensions excluding the current dimension.
Source§type Rest<S: Shape> = <Const<2> as Axis>::Rest<<S as Shape>::Tail>
type Rest<S: Shape> = <Const<2> as Axis>::Rest<<S as Shape>::Tail>
Shape for the next dimensions excluding the current dimension.
Source§type Remove<S: Shape> = <<Const<2> as Axis>::Remove<<S as Shape>::Tail> as Shape>::Prepend<<S as Shape>::Head>
type Remove<S: Shape> = <<Const<2> as Axis>::Remove<<S as Shape>::Tail> as Shape>::Prepend<<S as Shape>::Head>
Remove the dimension from the shape.
Source§impl Axis for Const<4>
impl Axis for Const<4>
Source§type Init<S: Shape> = <<Const<3> as Axis>::Init<<S as Shape>::Tail> as Shape>::Prepend<<S as Shape>::Head>
type Init<S: Shape> = <<Const<3> as Axis>::Init<<S as Shape>::Tail> as Shape>::Prepend<<S as Shape>::Head>
Shape for the previous dimensions excluding the current dimension.
Source§type Rest<S: Shape> = <Const<3> as Axis>::Rest<<S as Shape>::Tail>
type Rest<S: Shape> = <Const<3> as Axis>::Rest<<S as Shape>::Tail>
Shape for the next dimensions excluding the current dimension.
Source§type Remove<S: Shape> = <<Const<3> as Axis>::Remove<<S as Shape>::Tail> as Shape>::Prepend<<S as Shape>::Head>
type Remove<S: Shape> = <<Const<3> as Axis>::Remove<<S as Shape>::Tail> as Shape>::Prepend<<S as Shape>::Head>
Remove the dimension from the shape.
Source§impl Axis for Const<5>
impl Axis for Const<5>
Source§type Init<S: Shape> = <<Const<4> as Axis>::Init<<S as Shape>::Tail> as Shape>::Prepend<<S as Shape>::Head>
type Init<S: Shape> = <<Const<4> as Axis>::Init<<S as Shape>::Tail> as Shape>::Prepend<<S as Shape>::Head>
Shape for the previous dimensions excluding the current dimension.
Source§type Rest<S: Shape> = <Const<4> as Axis>::Rest<<S as Shape>::Tail>
type Rest<S: Shape> = <Const<4> as Axis>::Rest<<S as Shape>::Tail>
Shape for the next dimensions excluding the current dimension.
Source§type Remove<S: Shape> = <<Const<4> as Axis>::Remove<<S as Shape>::Tail> as Shape>::Prepend<<S as Shape>::Head>
type Remove<S: Shape> = <<Const<4> as Axis>::Remove<<S as Shape>::Tail> as Shape>::Prepend<<S as Shape>::Head>
Remove the dimension from the shape.
Source§impl<const N: usize> Dim for Const<N>
impl<const N: usize> Dim for Const<N>
Source§impl<const N: usize> Ord for Const<N>
impl<const N: usize> Ord for Const<N>
Source§impl<const N: usize> PartialOrd for Const<N>
impl<const N: usize> PartialOrd for Const<N>
impl<const N: usize> Copy for Const<N>
impl<const N: usize> Eq for Const<N>
impl<const N: usize> StructuralPartialEq 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