[−][src]Struct jlrs::value::array::UnrestrictedValueArrayDataMut
Implementations
impl<'borrow, 'frame, 'data, 'fr, F> UnrestrictedValueArrayDataMut<'borrow, 'frame, 'data, 'fr, F> where
F: Frame<'fr>,
[src]
F: Frame<'fr>,
pub fn get<D: Into<Dimensions>>(
&self,
index: D
) -> Option<&Value<'frame, 'data>>
[src]
&self,
index: D
) -> Option<&Value<'frame, 'data>>
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]
&mut self,
index: D,
value: Value<'frame, 'da>
) -> JlrsResult<()>
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 UnrestrictedValueArrayDataMut<'borrow, 'value, 'data, 'frame, F> where
D: Into<Dimensions>,
F: Frame<'frame>,
[src]
D: Into<Dimensions>,
F: Frame<'frame>,
Auto Trait Implementations
impl<'borrow, 'value, 'data, 'frame, F> RefUnwindSafe for UnrestrictedValueArrayDataMut<'borrow, 'value, 'data, 'frame, F> where
F: RefUnwindSafe,
F: RefUnwindSafe,
impl<'borrow, 'value, 'data, 'frame, F> !Send for UnrestrictedValueArrayDataMut<'borrow, 'value, 'data, 'frame, F>
impl<'borrow, 'value, 'data, 'frame, F> !Sync for UnrestrictedValueArrayDataMut<'borrow, 'value, 'data, 'frame, F>
impl<'borrow, 'value, 'data, 'frame, F> Unpin for UnrestrictedValueArrayDataMut<'borrow, 'value, 'data, 'frame, F> where
'data: 'borrow,
'value: 'borrow,
'data: 'borrow,
'value: 'borrow,
impl<'borrow, 'value, 'data, 'frame, F> !UnwindSafe for UnrestrictedValueArrayDataMut<'borrow, 'value, 'data, 'frame, 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>,