pub struct Index3D(pub usize);
Tuple Fields§
§0: usize
Implementations§
Source§impl Index3D
impl Index3D
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 Index3D
impl IndexAxisTrait for Index3D
impl Copy for Index3D
impl StructuralPartialEq for Index3D
Auto Trait Implementations§
impl Freeze for Index3D
impl RefUnwindSafe for Index3D
impl Send for Index3D
impl Sync for Index3D
impl Unpin for Index3D
impl UnwindSafe for Index3D
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