[][src]Struct jlrs::value::array::ValueArrayDataMut

pub struct ValueArrayDataMut<'borrow, 'value, 'data, 'frame, F: Frame<'frame>> { /* fields omitted */ }

Implementations

impl<'borrow, 'frame, 'data, 'fr, F> ValueArrayDataMut<'borrow, 'frame, 'data, 'fr, F> where
    F: Frame<'fr>, 
[src]

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

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

pub unsafe fn set<'va, 'da: 'data, D: Into<Dimensions>>(
    &mut self,
    index: D,
    value: Value<'frame, 'da>
) -> JlrsResult<()>
[src]

pub fn as_slice(&self) -> &[Value<'frame, 'data>][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, 'value, 'data, 'frame, D, F> Index<D> for ValueArrayDataMut<'borrow, 'value, 'data, 'frame, F> where
    D: Into<Dimensions>,
    F: Frame<'frame>, 
[src]

type Output = Value<'value, 'data>

The returned type after indexing.

Auto Trait Implementations

impl<'borrow, 'value, 'data, 'frame, F> RefUnwindSafe for ValueArrayDataMut<'borrow, 'value, 'data, 'frame, F> where
    F: RefUnwindSafe

impl<'borrow, 'value, 'data, 'frame, F> !Send for ValueArrayDataMut<'borrow, 'value, 'data, 'frame, F>

impl<'borrow, 'value, 'data, 'frame, F> !Sync for ValueArrayDataMut<'borrow, 'value, 'data, 'frame, F>

impl<'borrow, 'value, 'data, 'frame, F> Unpin for ValueArrayDataMut<'borrow, 'value, 'data, 'frame, F> where
    'data: 'borrow,
    'value: 'borrow, 

impl<'borrow, 'value, 'data, 'frame, F> !UnwindSafe for ValueArrayDataMut<'borrow, 'value, 'data, 'frame, 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.