pub struct Index1D(pub usize);
Tuple Fields§
§0: usize
Implementations§
Source§impl Index1D
impl Index1D
pub fn new(index: usize) -> Self
pub fn index(&self) -> usize
pub fn target_dim(&self) -> usize
pub fn get_shape_stride<Din: DimTrait, Dout: DimTrait>( &self, shape: &Din, stride: &Din, ) -> ShapeStride<Dout>
pub fn get_offset<D: DimTrait>(&self, stride: D) -> usize
Trait Implementations§
Source§impl IndexAxisTrait for Index1D
impl IndexAxisTrait for Index1D
impl Copy for Index1D
impl StructuralPartialEq for Index1D
Auto Trait Implementations§
impl Freeze for Index1D
impl RefUnwindSafe for Index1D
impl Send for Index1D
impl Sync for Index1D
impl Unpin for Index1D
impl UnwindSafe for Index1D
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