[−][src]Struct jlrs::array::ArrayDataMut
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]
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 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]
D: Into<Dimensions>,
F: Frame<'frame>,
impl<'borrow, 'frame, T, D, F> IndexMut<D> for ArrayDataMut<'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 ArrayDataMut<'borrow, 'frame, T, F> where
F: RefUnwindSafe,
T: RefUnwindSafe,
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,
'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]
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>,