[][src]Struct jlrs::array::ArrayData

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

Immutably 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> ArrayData<'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 as_slice(&self) -> &[T][src]

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

Trait Implementations

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

type Output = T

The returned type after indexing.

Auto Trait Implementations

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

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

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

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

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

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.