#[non_exhaustive]pub struct InnerStrides {
pub strides: Vec<i64>,
}Expand description
Inner strides within a single tile (in logical elements).
Present only when inner_layout == 0x03 (strided).
§Examples
use hurray_core::layout::InnerStrides;
let is = InnerStrides::new(vec![4, 1]);
assert_eq!(is.strides, [4, 1]);Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.strides: Vec<i64>Per-dimension strides within a tile, in logical elements.
Implementations§
Source§impl InnerStrides
impl InnerStrides
Trait Implementations§
Source§impl Clone for InnerStrides
impl Clone for InnerStrides
Source§fn clone(&self) -> InnerStrides
fn clone(&self) -> InnerStrides
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for InnerStrides
impl Debug for InnerStrides
impl Eq for InnerStrides
Source§impl Hash for InnerStrides
impl Hash for InnerStrides
Source§impl PartialEq for InnerStrides
impl PartialEq for InnerStrides
Source§fn eq(&self, other: &InnerStrides) -> bool
fn eq(&self, other: &InnerStrides) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for InnerStrides
Auto Trait Implementations§
impl Freeze for InnerStrides
impl RefUnwindSafe for InnerStrides
impl Send for InnerStrides
impl Sync for InnerStrides
impl Unpin for InnerStrides
impl UnsafeUnpin for InnerStrides
impl UnwindSafe for InnerStrides
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