[−][src]Struct heaparray::impls::SafeArray
Safe, generic interface to BaseArray
.
Uses length information to guarrantee memory safety, and excludes operations that cannot be performed safely from its API.
Trait Implementations
impl<E, L, P> LabelledArray<E, L> for SafeArray<E, L, P> where
P: SafeArrayPtr<E, L>,
[src]
P: SafeArrayPtr<E, L>,
fn with_label<F>(label: L, len: usize, func: F) -> Self where
F: FnMut(&mut L, usize) -> E,
[src]
F: FnMut(&mut L, usize) -> E,
fn get_label(&self) -> &L
[src]
unsafe fn get_unchecked(&self, idx: usize) -> &E
[src]
impl<E, L, P> LabelledArrayMut<E, L> for SafeArray<E, L, P> where
P: SafeArrayPtr<E, L>,
[src]
P: SafeArrayPtr<E, L>,
fn get_label_mut(&mut self) -> &mut L
[src]
unsafe fn get_mut_unchecked(&mut self, idx: usize) -> &mut E
[src]
impl<E, L, P> DefaultLabelledArray<E, L> for SafeArray<E, L, P> where
P: SafeArrayPtr<E, L>,
E: Default,
[src]
P: SafeArrayPtr<E, L>,
E: Default,
impl<E, P> MakeArray<E> for SafeArray<E, (), P> where
P: SafeArrayPtr<E, ()>,
[src]
P: SafeArrayPtr<E, ()>,
impl<E, L, P> SliceArray<E> for SafeArray<E, L, P> where
P: SafeArrayPtr<E, L>,
[src]
P: SafeArrayPtr<E, L>,
impl<E, L, P> SliceArrayMut<E> for SafeArray<E, L, P> where
P: SafeArrayPtr<E, L>,
[src]
P: SafeArrayPtr<E, L>,
fn as_slice_mut(&mut self) -> &mut [E]
[src]
impl<E, L, P> Send for SafeArray<E, L, P> where
P: SafeArrayPtr<E, L>,
E: Send,
L: Send,
[src]
P: SafeArrayPtr<E, L>,
E: Send,
L: Send,
impl<E, L, P> Drop for SafeArray<E, L, P> where
P: SafeArrayPtr<E, L>,
[src]
P: SafeArrayPtr<E, L>,
impl<E, L, P> IntoIterator for SafeArray<E, L, P> where
P: SafeArrayPtr<E, L>,
[src]
P: SafeArrayPtr<E, L>,
type Item = E
The type of the elements being iterated over.
type IntoIter = BaseArrayIter<E, L, P>
Which kind of iterator are we turning this into?
fn into_iter(self) -> Self::IntoIter
[src]
impl<'a, E, L, P> IntoIterator for &'a SafeArray<E, L, P> where
P: SafeArrayPtr<E, L>,
[src]
P: SafeArrayPtr<E, L>,
type Item = &'a E
The type of the elements being iterated over.
type IntoIter = Iter<'a, E>
Which kind of iterator are we turning this into?
fn into_iter(self) -> Self::IntoIter
[src]
impl<'a, E, L, P> IntoIterator for &'a mut SafeArray<E, L, P> where
P: SafeArrayPtr<E, L>,
[src]
P: SafeArrayPtr<E, L>,
type Item = &'a mut E
The type of the elements being iterated over.
type IntoIter = IterMut<'a, E>
Which kind of iterator are we turning this into?
fn into_iter(self) -> Self::IntoIter
[src]
impl<E, L, P> Sync for SafeArray<E, L, P> where
P: SafeArrayPtr<E, L>,
E: Sync,
L: Sync,
[src]
P: SafeArrayPtr<E, L>,
E: Sync,
L: Sync,
impl<E, L, P> Clone for SafeArray<E, L, P> where
P: SafeArrayPtr<E, L>,
E: Clone,
L: Clone,
[src]
P: SafeArrayPtr<E, L>,
E: Clone,
L: Clone,
fn clone(&self) -> Self
[src]
fn clone_from(&mut self, source: &Self)
[src]
impl<E, L, P> Index<usize> for SafeArray<E, L, P> where
P: SafeArrayPtr<E, L>,
[src]
P: SafeArrayPtr<E, L>,
impl<E, L, P> IndexMut<usize> for SafeArray<E, L, P> where
P: SafeArrayPtr<E, L>,
[src]
P: SafeArrayPtr<E, L>,
impl<E, L, P> Debug for SafeArray<E, L, P> where
P: SafeArrayPtr<E, L>,
E: Debug,
L: Debug,
[src]
P: SafeArrayPtr<E, L>,
E: Debug,
L: Debug,
impl<E, L, P> Container for SafeArray<E, L, P> where
P: SafeArrayPtr<E, L>,
[src]
P: SafeArrayPtr<E, L>,
impl<E, L, P> CopyMap<usize, E> for SafeArray<E, L, P> where
P: SafeArrayPtr<E, L>,
[src]
P: SafeArrayPtr<E, L>,
Auto Trait Implementations
impl<E, L, P> Unpin for SafeArray<E, L, P> where
E: Unpin,
L: Unpin,
P: Unpin,
E: Unpin,
L: Unpin,
P: Unpin,
impl<E, L, P> UnwindSafe for SafeArray<E, L, P> where
E: UnwindSafe,
L: UnwindSafe,
P: UnwindSafe,
E: UnwindSafe,
L: UnwindSafe,
P: UnwindSafe,
impl<E, L, P> RefUnwindSafe for SafeArray<E, L, P> where
E: RefUnwindSafe,
L: RefUnwindSafe,
P: RefUnwindSafe,
E: RefUnwindSafe,
L: RefUnwindSafe,
P: RefUnwindSafe,
Blanket Implementations
impl<I> IntoIterator for I where
I: Iterator,
[src]
I: Iterator,
type Item = <I as Iterator>::Item
The type of the elements being iterated over.
type IntoIter = I
Which kind of iterator are we turning this into?
fn into_iter(self) -> I
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,