Trait Unique

Source
pub unsafe trait Unique { }
Expand description

A marker trait confirming that two indices of a Slice will never alias.

§Safety

Two calls to get_mut (or any other index operation) with different indices must never return aliasing references.

Implementations on Foreign Types§

Source§

impl<'a, S> Unique for &'a S
where S: Unique + ?Sized,

Source§

impl<'a, S> Unique for &'a mut S
where S: Unique + ?Sized,

Source§

impl<T> Unique for [T]

Source§

impl<T, const N: usize> Unique for [T; N]

Implementors§

Source§

impl<A> Unique for SliceOf<A>
where A: Unique,

Source§

impl<S1, S2> Unique for Chain<S1, S2>
where S1: Unique, S2: Unique,

Source§

impl<S1, S2> Unique for Interleave<S1, S2>
where S1: Unique, S2: Unique,

Source§

impl<S1, S2> Unique for Zip<S1, S2>
where S1: Unique, S2: Unique,

Source§

impl<S> Unique for Reverse<S>
where S: Unique,