Enum poc_kokkos_rs::view::parameters::Layout
source · pub enum Layout<const N: usize> {
Right,
Left,
Stride {
s: [usize; N],
},
}
Expand description
Enum used to represent data layout. Struct enums is used in order to increase readability.
Variants§
Right
Highest stride for the first index, decreasing stride as index increases. Exact stride for each index can be computed from dimensions at view initialization.
Left
Lowest stride for the first index, increasing stride as index decreases. Exact stride for each index can be computed from dimensions at view initialization.
Stride
Custom stride for each index. Must be compatible with dimensions.
Trait Implementations§
source§impl<const N: usize> PartialEq<Layout<N>> for Layout<N>
impl<const N: usize> PartialEq<Layout<N>> for Layout<N>
impl<const N: usize> Copy for Layout<N>
impl<const N: usize> StructuralPartialEq for Layout<N>
Auto Trait Implementations§
impl<const N: usize> RefUnwindSafe for Layout<N>
impl<const N: usize> Send for Layout<N>
impl<const N: usize> Sync for Layout<N>
impl<const N: usize> Unpin for Layout<N>
impl<const N: usize> UnwindSafe for Layout<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