Skip to main content

DummyArray3D

Struct DummyArray3D 

Source
pub struct DummyArray3D<'a, T: 'static> { /* private fields */ }

Implementations§

Source§

impl<'a, T> DummyArray3D<'a, T>

Source

pub fn new<B0: RangeBounds<i32>, B1: RangeBounds<i32>, B2: RangeBounds<i32>>( r: &'a [T], b0: B0, b1: B1, b2: B2, ) -> Self

Trait Implementations§

Source§

impl<T> ArrayOps<T, [i32; 3]> for DummyArray3D<'_, T>

Source§

fn data(&self) -> &[T]

Source§

fn offset(&self, index: [i32; 3]) -> usize

Source§

fn first(&self) -> &T

Source§

fn as_slice(&self) -> &[T]

Source§

fn subarray(&self, index: I) -> &[T]

Source§

fn iter(&self) -> impl Iterator<Item = &T>

Source§

fn subscript(&self, index: I) -> i32

Source§

impl<T> Index<[i32; 3]> for DummyArray3D<'_, T>

Source§

type Output = T

The returned type after indexing.
Source§

fn index(&self, index: [i32; 3]) -> &Self::Output

Performs the indexing (container[index]) operation. Read more

Auto Trait Implementations§

§

impl<'a, T> Freeze for DummyArray3D<'a, T>
where &'a [T]: Freeze,

§

impl<'a, T> RefUnwindSafe for DummyArray3D<'a, T>
where &'a [T]: RefUnwindSafe,

§

impl<'a, T> Send for DummyArray3D<'a, T>
where &'a [T]: Send,

§

impl<'a, T> Sync for DummyArray3D<'a, T>
where &'a [T]: Sync,

§

impl<'a, T> Unpin for DummyArray3D<'a, T>
where &'a [T]: Unpin,

§

impl<'a, T> UnsafeUnpin for DummyArray3D<'a, T>
where &'a [T]: UnsafeUnpin,

§

impl<'a, T> UnwindSafe for DummyArray3D<'a, T>
where &'a [T]: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.