[−][src]Struct jlrs::value::array::ArrayData
Immutably borrowed array data from Julia. The data has a column-major order and can be indexed
with anything that implements Into<Dimensions>
; see Dimensions
for more information.
Implementations
impl<'borrow, 'frame, T, F> ArrayData<'borrow, 'frame, T, F> where
F: Frame<'frame>,
[src]
F: Frame<'frame>,
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.
pub fn into_slice(self) -> &'borrow [T]
[src]
Returns the array's data as a slice, the data is in column-major order.
pub fn dimensions(&self) -> &Dimensions
[src]
Returns a reference to the array's dimensions.
Trait Implementations
impl<'borrow, 'frame, T, D, F> Index<D> for ArrayData<'borrow, 'frame, T, F> where
D: Into<Dimensions>,
F: Frame<'frame>,
[src]
D: Into<Dimensions>,
F: Frame<'frame>,
Auto Trait Implementations
impl<'borrow, 'frame, T, F> RefUnwindSafe for ArrayData<'borrow, 'frame, T, F> where
F: RefUnwindSafe,
T: RefUnwindSafe,
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>
impl<'borrow, 'frame, T, F> UnwindSafe for ArrayData<'borrow, 'frame, T, F> where
F: RefUnwindSafe,
T: RefUnwindSafe,
F: RefUnwindSafe,
T: RefUnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,