[−][src]Struct wrapping::WrappingArray
An array that wraps around its size.
Example
use wrapping::WrappingArray; let array: [&str; 1] = ["hello"]; let wrapping = WrappingArray::from(array); assert_eq!(wrapping[0], "hello"); assert_eq!(wrapping[1], "hello");
Methods from Deref<Target = GenericArray<T, N>>
Trait Implementations
impl<T, N: ArrayLength<T>> Deref for WrappingArray<T, N>
[src]
type Target = GenericArray<T, N>
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target
[src]
impl<T, N: ArrayLength<T>, I: Into<GenericArray<T, N>>> From<I> for WrappingArray<T, N>
[src]
impl<T, N: ArrayLength<T>> Index<usize> for WrappingArray<T, N>
[src]
type Output = T
The returned type after indexing.
fn index(&self, index: usize) -> &Self::Output
[src]
impl<T, N: ArrayLength<T>> IndexMut<usize> for WrappingArray<T, N>
[src]
Auto Trait Implementations
impl<T, N> RefUnwindSafe for WrappingArray<T, N> where
<N as ArrayLength<T>>::ArrayType: RefUnwindSafe,
<N as ArrayLength<T>>::ArrayType: RefUnwindSafe,
impl<T, N> Send for WrappingArray<T, N> where
T: Send,
T: Send,
impl<T, N> Sync for WrappingArray<T, N> where
T: Sync,
T: Sync,
impl<T, N> Unpin for WrappingArray<T, N> where
<N as ArrayLength<T>>::ArrayType: Unpin,
<N as ArrayLength<T>>::ArrayType: Unpin,
impl<T, N> UnwindSafe for WrappingArray<T, N> where
<N as ArrayLength<T>>::ArrayType: UnwindSafe,
<N as ArrayLength<T>>::ArrayType: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &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> Same<T> for T
type Output = T
Should always be Self
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>,