pub struct RuntimeArray<T> { /* private fields */ }Implementations§
Source§impl<T: Clone> RuntimeArray<T>
impl<T: Clone> RuntimeArray<T>
Source§impl<T> RuntimeArray<T>
impl<T> RuntimeArray<T>
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn as_slice(&self) -> &[T]
pub fn as_mut_slice(&mut self) -> &mut [T]
pub fn get(&self, index: usize) -> Option<&T>
pub fn get_mut(&mut self, index: usize) -> Option<&mut T>
pub fn iter(&self) -> Iter<'_, T> ⓘ
pub fn iter_mut(&mut self) -> IterMut<'_, T> ⓘ
Trait Implementations§
Source§impl<T: Clone> Clone for RuntimeArray<T>
impl<T: Clone> Clone for RuntimeArray<T>
Source§impl<T> Drop for RuntimeArray<T>
impl<T> Drop for RuntimeArray<T>
Source§impl<T> Index<usize> for RuntimeArray<T>
impl<T> Index<usize> for RuntimeArray<T>
Source§impl<T> IndexMut<usize> for RuntimeArray<T>
impl<T> IndexMut<usize> for RuntimeArray<T>
Source§impl<'a, T> IntoIterator for &'a RuntimeArray<T>
impl<'a, T> IntoIterator for &'a RuntimeArray<T>
Source§impl<'a, T> IntoIterator for &'a mut RuntimeArray<T>
impl<'a, T> IntoIterator for &'a mut RuntimeArray<T>
Source§impl<T> IntoIterator for RuntimeArray<T>
impl<T> IntoIterator for RuntimeArray<T>
impl<T: Send> Send for RuntimeArray<T>
impl<T: Sync> Sync for RuntimeArray<T>
Auto Trait Implementations§
impl<T> Freeze for RuntimeArray<T>
impl<T> RefUnwindSafe for RuntimeArray<T>where
T: RefUnwindSafe,
impl<T> Unpin for RuntimeArray<T>where
T: Unpin,
impl<T> UnwindSafe for RuntimeArray<T>where
T: RefUnwindSafe + UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more