[][src]Struct jlrs::array::ArrayDataMut

pub struct ArrayDataMut<'borrow, 'frame, T, F: Frame<'frame>> { /* fields omitted */ }

Mutably borrowed array data from Julia. The data has a column-major order and can be indexed with an n-dimensional index; see Dimensions for more information.

Methods

impl<'borrow, 'frame, T, F> ArrayDataMut<'borrow, 'frame, T, F> where
    F: Frame<'frame>, 
[src]

pub fn get<D: Into<Dimensions>>(&self, index: D) -> Option<&T>[src]

Get a reference to the value at index, or None if the index is out of bounds.

pub fn get_mut<D: Into<Dimensions>>(&mut self, index: D) -> Option<&mut T>[src]

Get a mutable reference to the value at index, or None if the index is out of bounds.

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

Returns the array's data as a slice, the data is in column-major order.

pub fn as_mut_slice(&mut self) -> &mut [T][src]

Returns the array's data as a mutable slice, the data is in column-major order.

Trait Implementations

impl<'borrow, 'frame, T, D, F> Index<D> for ArrayDataMut<'borrow, 'frame, T, F> where
    D: Into<Dimensions>,
    F: Frame<'frame>, 
[src]

type Output = T

The returned type after indexing.

impl<'borrow, 'frame, T, D, F> IndexMut<D> for ArrayDataMut<'borrow, 'frame, T, F> where
    D: Into<Dimensions>,
    F: Frame<'frame>, 
[src]

Auto Trait Implementations

impl<'borrow, 'frame, T, F> RefUnwindSafe for ArrayDataMut<'borrow, 'frame, T, F> where
    F: RefUnwindSafe,
    T: RefUnwindSafe

impl<'borrow, 'frame, T, F> !Send for ArrayDataMut<'borrow, 'frame, T, F>

impl<'borrow, 'frame, T, F> !Sync for ArrayDataMut<'borrow, 'frame, T, F>

impl<'borrow, 'frame, T, F> Unpin for ArrayDataMut<'borrow, 'frame, T, F> where
    'frame: 'borrow, 

impl<'borrow, 'frame, T, F> !UnwindSafe for ArrayDataMut<'borrow, 'frame, T, F>

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.