Struct checked_array::Array[][src]

pub struct Array<Wrapped> { /* fields omitted */ }

A wrapper for array types that exposes checked APIs only

Implementations

impl<Wrapped> Array<Wrapped>[src]

pub const fn new(array: Wrapped) -> Self[src]

Wraps an array

pub fn into_inner(self) -> Wrapped[src]

Returns the wrapped array

Trait Implementations

impl<T, Wrapped> ArrayAlloc<T> for Array<Wrapped> where
    Wrapped: AsRef<[T]> + AsMut<[T]> + CanAlloc<T>, 
[src]

type Error = Wrapped::Error

An alloc related error

impl<T, Wrapped> ArrayMut<T> for Array<Wrapped> where
    Wrapped: AsRef<[T]> + AsMut<[T]>, 
[src]

impl<T, Wrapped> ArrayRef<T> for Array<Wrapped> where
    Wrapped: AsRef<[T]>, 
[src]

impl<Wrapped> AsRef<Array<Wrapped>> for Array<Wrapped>[src]

impl<Wrapped> Clone for Array<Wrapped> where
    Wrapped: Clone
[src]

impl<Wrapped> Copy for Array<Wrapped> where
    Wrapped: Copy
[src]

impl<Wrapped> Debug for Array<Wrapped> where
    Wrapped: Debug
[src]

impl<Wrapped> Default for Array<Wrapped> where
    Wrapped: Default
[src]

impl<Wrapped> Eq for Array<Wrapped> where
    Wrapped: Eq
[src]

impl<Wrapped> Hash for Array<Wrapped> where
    Wrapped: Hash
[src]

impl<Wrapped> IntoIterator for Array<Wrapped> where
    Wrapped: IntoIterator
[src]

type Item = Wrapped::Item

The type of the elements being iterated over.

type IntoIter = Wrapped::IntoIter

Which kind of iterator are we turning this into?

impl<Wrapped> Ord for Array<Wrapped> where
    Wrapped: Ord
[src]

impl<Wrapped> PartialEq<Array<Wrapped>> for Array<Wrapped> where
    Wrapped: PartialEq
[src]

impl<Wrapped> PartialOrd<Array<Wrapped>> for Array<Wrapped> where
    Wrapped: PartialOrd
[src]

Auto Trait Implementations

impl<Wrapped> RefUnwindSafe for Array<Wrapped> where
    Wrapped: RefUnwindSafe

impl<Wrapped> Send for Array<Wrapped> where
    Wrapped: Send

impl<Wrapped> Sync for Array<Wrapped> where
    Wrapped: Sync

impl<Wrapped> Unpin for Array<Wrapped> where
    Wrapped: Unpin

impl<Wrapped> UnwindSafe for Array<Wrapped> where
    Wrapped: UnwindSafe

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

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

type Owned = T

The resulting type after obtaining ownership.

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.