#[non_exhaustive]pub struct OuterStrides {
pub strides: Vec<i64>,
}Expand description
Outer strides for the tile grid (in units of tiles, not elements).
Present only when outer_layout == 0x03 (strided).
§Examples
use hurray_core::layout::OuterStrides;
let os = OuterStrides::new(vec![2, 1]);
assert_eq!(os.strides, [2, 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>Outer tile-grid strides, one per dimension, in units of tiles.
Implementations§
Source§impl OuterStrides
impl OuterStrides
Trait Implementations§
Source§impl Clone for OuterStrides
impl Clone for OuterStrides
Source§fn clone(&self) -> OuterStrides
fn clone(&self) -> OuterStrides
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 OuterStrides
impl Debug for OuterStrides
impl Eq for OuterStrides
Source§impl Hash for OuterStrides
impl Hash for OuterStrides
Source§impl PartialEq for OuterStrides
impl PartialEq for OuterStrides
Source§fn eq(&self, other: &OuterStrides) -> bool
fn eq(&self, other: &OuterStrides) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for OuterStrides
Auto Trait Implementations§
impl Freeze for OuterStrides
impl RefUnwindSafe for OuterStrides
impl Send for OuterStrides
impl Sync for OuterStrides
impl Unpin for OuterStrides
impl UnsafeUnpin for OuterStrides
impl UnwindSafe for OuterStrides
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