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