[][src]Struct heaparray::fat_array_ptr::FatPtrArray

pub struct FatPtrArray<'a, L, E> where
    Self: 'a, 
{ /* fields omitted */ }

Methods

impl<'a, L, E> FatPtrArray<'a, L, E>[src]

pub fn new<F>(label: L, len: usize, func: F) -> Self where
    F: FnMut(&mut L, usize) -> E, 
[src]

Create a new array, with values initialized using a provided function.

pub unsafe fn new_unsafe(label: L, len: usize) -> Self[src]

Create a new array, without initializing the values in it.

pub unsafe fn unchecked_access(&'a self, idx: usize) -> &'a mut E[src]

Unsafe access to an element at an index in the array.

impl<'a, L, E> FatPtrArray<'a, L, E> where
    E: Default
[src]

pub fn new_default(label: L, len: usize) -> Self[src]

Get a new array, initialized to default values.

Trait Implementations

impl<'a, L, E> LabelledArray<L, E> for FatPtrArray<'a, L, E>[src]

fn get_label(&self) -> &L[src]

Get a reference to the label of the array.

fn get_label_mut(&mut self) -> &mut L[src]

Get a mutable reference to the label of the array.

impl<'a, L, E> Clone for FatPtrArray<'a, L, E> where
    L: Clone,
    E: Clone
[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl<'a, L, E> Index<usize> for FatPtrArray<'a, L, E>[src]

type Output = E

The returned type after indexing.

impl<'a, L, E> IndexMut<usize> for FatPtrArray<'a, L, E>[src]

impl<'a, L, E> Container<(usize, E)> for FatPtrArray<'a, L, E>[src]

impl<'a, L, E> CopyMap<usize, E, (usize, E)> for FatPtrArray<'a, L, E>[src]

impl<'a, L, E> Array<E> for FatPtrArray<'a, L, E>[src]

Auto Trait Implementations

impl<'a, L, E> Send for FatPtrArray<'a, L, E> where
    E: Send,
    L: Send

impl<'a, L, E> Sync for FatPtrArray<'a, L, E> where
    E: Sync,
    L: Sync

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]