pub struct StrideRecord {
pub shape: Shape,
pub strides: Strides,
}Expand description
Collected shape/stride record.
As this is used for error messages, there is no expectation that this is valid, or that the ranks match.
Fields§
§shape: Shape§strides: StridesImplementations§
Source§impl StrideRecord
impl StrideRecord
Sourcepub fn from_usize_strides(shape: &[usize], strides: &[usize]) -> StrideRecord
pub fn from_usize_strides(shape: &[usize], strides: &[usize]) -> StrideRecord
Create a new StrideRecord from a slice of usize strides.
Sourcepub fn from_isize_strides(shape: &[usize], strides: &[isize]) -> StrideRecord
pub fn from_isize_strides(shape: &[usize], strides: &[isize]) -> StrideRecord
Create a new StrideRecord from a slice of isize strides.
Trait Implementations§
Source§impl Clone for StrideRecord
impl Clone for StrideRecord
Source§fn clone(&self) -> StrideRecord
fn clone(&self) -> StrideRecord
Returns a duplicate of the value. Read more
1.0.0 · 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 StrideRecord
impl Debug for StrideRecord
Source§impl PartialEq for StrideRecord
impl PartialEq for StrideRecord
impl StructuralPartialEq for StrideRecord
Auto Trait Implementations§
impl Freeze for StrideRecord
impl RefUnwindSafe for StrideRecord
impl Send for StrideRecord
impl Sync for StrideRecord
impl Unpin for StrideRecord
impl UnsafeUnpin for StrideRecord
impl UnwindSafe for StrideRecord
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