[][src]Struct toodee::TooDeeViewMut

pub struct TooDeeViewMut<'a, T> { /* fields omitted */ }

Provides a mutable view (or subset), of a TooDee array.

Implementations

impl<'a, T> TooDeeViewMut<'a, T>[src]

pub fn new(
    num_cols: usize,
    num_rows: usize,
    data: &'a mut [T]
) -> TooDeeViewMut<'a, T>
[src]

Create a new TooDeeViewMut using the provided mutable slice reference.

Panics

Panics if one of the dimensions is zero but the other is non-zero. This is to enforce the rule that empty arrays have no dimensions.

Panics if the slice's length is not sufficient to represent the desired array dimensions.

Trait Implementations

impl<'_, T> CopyOps<T> for TooDeeViewMut<'_, T>[src]

impl<'_, T> Debug for TooDeeViewMut<'_, T> where
    T: Debug
[src]

impl<'_, T> From<TooDeeViewMut<'_, T>> for TooDee<T> where
    T: Clone
[src]

impl<'a, T> Index<(usize, usize)> for TooDeeViewMut<'a, T>[src]

type Output = T

The returned type after indexing.

impl<'a, T> Index<usize> for TooDeeViewMut<'a, T>[src]

type Output = [T]

The returned type after indexing.

impl<'a, T> IndexMut<(usize, usize)> for TooDeeViewMut<'a, T>[src]

impl<'a, T> IndexMut<usize> for TooDeeViewMut<'a, T>[src]

impl<'a, T> Into<TooDeeView<'a, T>> for TooDeeViewMut<'a, T>[src]

impl<'a, T> IntoIterator for &'a TooDeeViewMut<'a, T>[src]

type Item = &'a T

The type of the elements being iterated over.

type IntoIter = Cells<'a, T>

Which kind of iterator are we turning this into?

impl<'a, T> IntoIterator for &'a mut TooDeeViewMut<'a, T>[src]

type Item = &'a mut T

The type of the elements being iterated over.

type IntoIter = CellsMut<'a, T>

Which kind of iterator are we turning this into?

impl<'_, T> SortOps<T> for TooDeeViewMut<'_, T>[src]

impl<'a, T> TooDeeOps<T> for TooDeeViewMut<'a, T>[src]

impl<'a, T> TooDeeOpsMut<T> for TooDeeViewMut<'a, T>[src]

impl<'_, T> TranslateOps<T> for TooDeeViewMut<'_, T>[src]

Auto Trait Implementations

impl<'a, T> Send for TooDeeViewMut<'a, T> where
    T: Send

impl<'a, T> Sync for TooDeeViewMut<'a, T> where
    T: Sync

impl<'a, T> Unpin for TooDeeViewMut<'a, T>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.