Skip to main content

ArrayStorageSliceExt

Trait ArrayStorageSliceExt 

Source
pub trait ArrayStorageSliceExt: ArrayStorage + Sealed {
    // Provided methods
    fn len(&self) -> usize
       where Self: AsRef<[Self::T]> { ... }
    fn iter(&self) -> Iter<'_, Self::T>
       where Self: AsRef<[Self::T]> { ... }
    fn iter_mut(&mut self) -> IterMut<'_, Self::T>
       where Self: AsMut<[Self::T]> { ... }
}
Expand description

Extension methods for ArrayStorage.

Provided Methods§

Source

fn len(&self) -> usize
where Self: AsRef<[Self::T]>,

Length of the storage.

Source

fn iter(&self) -> Iter<'_, Self::T>
where Self: AsRef<[Self::T]>,

Iterate mutable references to elements in the storage.

Source

fn iter_mut(&mut self) -> IterMut<'_, Self::T>
where Self: AsMut<[Self::T]>,

Iterate mutable references to elements in the storage.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<T> ArrayStorageSliceExt for T
where T: ArrayStorage + Sealed,