Struct ActualArray2D

Source
pub struct ActualArray2D<T: 'static> { /* private fields */ }

Implementations§

Source§

impl<T> ActualArray2D<T>
where T: Default + Copy,

Source

pub fn new(b0: RangeInclusive<i32>, b1: RangeInclusive<i32>) -> Self

Trait Implementations§

Source§

impl<T> ArrayOps<T, [i32; 2]> for ActualArray2D<T>

Source§

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

Source§

fn offset(&self, index: [i32; 2]) -> 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> ArrayOpsMut<T, [i32; 2]> for ActualArray2D<T>

Source§

fn data_mut(&mut self) -> &mut [T]

Source§

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

Source§

fn as_slice_mut(&mut self) -> &mut [T]

Source§

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

Source§

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

Source§

fn get_disjoint_mut<const N: usize>( &mut self, indices: [I; N], ) -> Result<[&mut T; N], GetDisjointMutError>

Source§

fn get_disjoint_slices_mut<const N: usize>( &mut self, indices: [I; N], ) -> Result<[&mut [T]; N], GetDisjointMutError>

Get slices starting at the given indices, each as large as possible without overlapping.
Source§

impl<T> Index<[i32; 2]> for ActualArray2D<T>

Source§

type Output = T

The returned type after indexing.
Source§

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

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

impl<T> IndexMut<[i32; 2]> for ActualArray2D<T>

Source§

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

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

Auto Trait Implementations§

§

impl<T> Freeze for ActualArray2D<T>

§

impl<T> RefUnwindSafe for ActualArray2D<T>
where T: RefUnwindSafe,

§

impl<T> Send for ActualArray2D<T>
where T: Send,

§

impl<T> Sync for ActualArray2D<T>
where T: Sync,

§

impl<T> Unpin for ActualArray2D<T>
where T: Unpin,

§

impl<T> UnwindSafe for ActualArray2D<T>
where 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 = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

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.