Struct unchecked_index::UncheckedIndex [] [src]

pub struct UncheckedIndex<S>(_);

Wrapper type for unchecked indexing through the regular index syntax

Note that the indexing is checked with debug assertions, but unchecked in release mode. Test your code responsibly.

Trait Implementations

impl<S: Copy> Copy for UncheckedIndex<S>
[src]

impl<S: Copy> Clone for UncheckedIndex<S>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<T> Deref for UncheckedIndex<T>
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.

impl<T> DerefMut for UncheckedIndex<T>
[src]

[src]

Mutably dereferences the value.

impl<T, I> Index<I> for UncheckedIndex<T> where
    T: GetUnchecked<I>, 
[src]

The returned type after indexing.

[src]

Performs the indexing (container[index]) operation.

impl<T, I> IndexMut<I> for UncheckedIndex<T> where
    T: GetUncheckedMut<I>, 
[src]

[src]

Performs the mutable indexing (container[index]) operation.