Trait flatk::IsolateIndex [−][src]
A helper trait like GetIndex
but for Isolate
types.
Associated Types
Loading content...Required methods
fn try_isolate(self, set: S) -> Option<Self::Output>
[src]
unsafe fn isolate_unchecked(self, set: S) -> Self::Output
[src]
Implementations on Foreign Types
impl<O> IsolateIndex<ClumpedOffsets<O>> for usize where
ClumpedOffsets<O>: GetOffset,
[src]
ClumpedOffsets<O>: GetOffset,
type Output = usize
unsafe fn isolate_unchecked(
self,
clumped_offsets: ClumpedOffsets<O>
) -> Self::Output
[src]
self,
clumped_offsets: ClumpedOffsets<O>
) -> Self::Output
fn try_isolate(self, clumped_offsets: ClumpedOffsets<O>) -> Option<Self::Output>
[src]
impl<O: Isolate<usize>> IsolateIndex<Offsets<O>> for usize
[src]
type Output = O::Output
unsafe fn isolate_unchecked(self, offsets: Offsets<O>) -> Self::Output
[src]
fn try_isolate(self, offsets: Offsets<O>) -> Option<Self::Output>
[src]
impl<O: Isolate<Range<usize>>> IsolateIndex<Offsets<O>> for Range<usize>
[src]
type Output = Offsets<O::Output>
unsafe fn isolate_unchecked(mut self: Self, offsets: Offsets<O>) -> Self::Output
[src]
fn try_isolate(mut self: Self, offsets: Offsets<O>) -> Option<Self::Output>
[src]
impl<S, N> IsolateIndex<UniChunked<S, U<N>>> for usize where
S: Set + Isolate<StaticRange<N>>,
N: Unsigned,
[src]
S: Set + Isolate<StaticRange<N>>,
N: Unsigned,
type Output = S::Output
unsafe fn isolate_unchecked(self, chunked: UniChunked<S, U<N>>) -> Self::Output
[src]
fn try_isolate(self, chunked: UniChunked<S, U<N>>) -> Option<Self::Output>
[src]
Isolate a chunk of the given UniChunked
collection.
impl<S, N> IsolateIndex<UniChunked<S, U<N>>> for Range<usize> where
S: Set + Isolate<Range<usize>>,
N: Unsigned + Default,
[src]
S: Set + Isolate<Range<usize>>,
N: Unsigned + Default,
type Output = UniChunked<S::Output, U<N>>
unsafe fn isolate_unchecked(self, chunked: UniChunked<S, U<N>>) -> Self::Output
[src]
fn try_isolate(self, chunked: UniChunked<S, U<N>>) -> Option<Self::Output>
[src]
Isolate a [begin..end)
range of the given UniChunked
collection.
impl<S> IsolateIndex<UniChunked<S, usize>> for usize where
S: Set + Isolate<Range<usize>>,
[src]
S: Set + Isolate<Range<usize>>,
type Output = S::Output
unsafe fn isolate_unchecked(self, chunked: ChunkedN<S>) -> Self::Output
[src]
fn try_isolate(self, chunked: ChunkedN<S>) -> Option<Self::Output>
[src]
Isolate a chunk of the given ChunkedN
collection.
impl<S> IsolateIndex<UniChunked<S, usize>> for Range<usize> where
S: Set + Isolate<Range<usize>>,
[src]
S: Set + Isolate<Range<usize>>,
type Output = ChunkedN<S::Output>
unsafe fn isolate_unchecked(self, chunked: ChunkedN<S>) -> Self::Output
[src]
fn try_isolate(self, chunked: ChunkedN<S>) -> Option<Self::Output>
[src]
Isolate a [begin..end)
range of the given ChunkedN
collection.
impl<S, O> IsolateIndex<Chunked<S, O>> for usize where
S: Set + Isolate<Range<usize>>,
O: IndexRange,
[src]
S: Set + Isolate<Range<usize>>,
O: IndexRange,
type Output = S::Output
unsafe fn isolate_unchecked(self, chunked: Chunked<S, O>) -> Self::Output
[src]
fn try_isolate(self, chunked: Chunked<S, O>) -> Option<Self::Output>
[src]
Isolate a single chunk of the given Chunked
collection.
impl<S, O> IsolateIndex<Chunked<S, O>> for Range<usize> where
S: Set + Isolate<Range<usize>>,
<S as Isolate<Range<usize>>>::Output: Set,
O: IndexRange + Isolate<Range<usize>>,
[src]
S: Set + Isolate<Range<usize>>,
<S as Isolate<Range<usize>>>::Output: Set,
O: IndexRange + Isolate<Range<usize>>,
type Output = Chunked<S::Output, O::Output>
unsafe fn isolate_unchecked(self, chunked: Chunked<S, O>) -> Self::Output
[src]
fn try_isolate(self, chunked: Chunked<S, O>) -> Option<Self::Output>
[src]
Isolate a [begin..end)
range of the given Chunked
collection.
impl<T: IntBound> IsolateIndex<Range<T>> for usize
[src]
type Output = T
unsafe fn isolate_unchecked(self, rng: Range<T>) -> Self::Output
[src]
fn try_isolate(self, rng: Range<T>) -> Option<Self::Output>
[src]
impl<T: IntBound> IsolateIndex<Range<T>> for Range<usize>
[src]
type Output = Range<T>
unsafe fn isolate_unchecked(self, rng: Range<T>) -> Self::Output
[src]
fn try_isolate(self, rng: Range<T>) -> Option<Self::Output>
[src]
impl<T: IntBound> IsolateIndex<RangeTo<T>> for usize
[src]
type Output = T
unsafe fn isolate_unchecked(self, _: RangeTo<T>) -> Self::Output
[src]
fn try_isolate(self, rng: RangeTo<T>) -> Option<Self::Output>
[src]
impl<T: IntBound> IsolateIndex<RangeTo<T>> for Range<usize>
[src]
type Output = Range<T>
unsafe fn isolate_unchecked(self, _: RangeTo<T>) -> Self::Output
[src]
fn try_isolate(self, rng: RangeTo<T>) -> Option<Self::Output>
[src]
impl<S, I> IsolateIndex<Select<S, I>> for usize where
I: Isolate<usize>,
<I as Isolate<usize>>::Output: Borrow<usize>,
S: Isolate<usize>,
[src]
I: Isolate<usize>,
<I as Isolate<usize>>::Output: Borrow<usize>,
S: Isolate<usize>,
type Output = (I::Output, S::Output)
unsafe fn isolate_unchecked(self, selection: Select<S, I>) -> Self::Output
[src]
fn try_isolate(self, selection: Select<S, I>) -> Option<Self::Output>
[src]
impl<S, I> IsolateIndex<Select<S, I>> for Range<usize> where
I: Isolate<Range<usize>>,
[src]
I: Isolate<Range<usize>>,
Isolating a range from a selection will preserve the original target data set.
type Output = Select<S, I::Output>
unsafe fn isolate_unchecked(self, selection: Select<S, I>) -> Self::Output
[src]
fn try_isolate(self, selection: Select<S, I>) -> Option<Self::Output>
[src]
impl<S, T, I> IsolateIndex<Sparse<S, T, I>> for usize where
I: Isolate<usize>,
<I as Isolate<usize>>::Output: Borrow<usize>,
S: Isolate<usize>,
T: Isolate<usize>,
[src]
I: Isolate<usize>,
<I as Isolate<usize>>::Output: Borrow<usize>,
S: Isolate<usize>,
T: Isolate<usize>,
type Output = (<I as Isolate<usize>>::Output, <S as Isolate<usize>>::Output, <T as Isolate<usize>>::Output)
unsafe fn isolate_unchecked(self, sparse: Sparse<S, T, I>) -> Self::Output
[src]
fn try_isolate(self, sparse: Sparse<S, T, I>) -> Option<Self::Output>
[src]
impl<S, T, I> IsolateIndex<Sparse<S, T, I>> for Range<usize> where
S: Isolate<Range<usize>>,
I: Isolate<Range<usize>>,
[src]
S: Isolate<Range<usize>>,
I: Isolate<Range<usize>>,
type Output = Sparse<S::Output, T, I::Output>
unsafe fn isolate_unchecked(self, sparse: Sparse<S, T, I>) -> Self::Output
[src]
fn try_isolate(self, sparse: Sparse<S, T, I>) -> Option<Self::Output>
[src]
impl<S, O> IsolateIndex<Subset<S, O>> for usize where
O: AsRef<[usize]>,
S: Isolate<usize>,
[src]
O: AsRef<[usize]>,
S: Isolate<usize>,
type Output = <S as Isolate<usize>>::Output
unsafe fn isolate_unchecked(self, subset: Subset<S, O>) -> Self::Output
[src]
fn try_isolate(self, subset: Subset<S, O>) -> Option<Self::Output>
[src]
impl<'a, S, T> IsolateIndex<(S, T)> for usize where
S: Isolate<usize>,
T: Isolate<usize>,
[src]
S: Isolate<usize>,
T: Isolate<usize>,
type Output = (S::Output, T::Output)
unsafe fn isolate_unchecked(self, (s, t): (S, T)) -> Self::Output
[src]
fn try_isolate(self, (s, t): (S, T)) -> Option<Self::Output>
[src]
impl<'a, S, T> IsolateIndex<(S, T)> for Range<usize> where
S: Isolate<Range<usize>>,
T: Isolate<Range<usize>>,
[src]
S: Isolate<Range<usize>>,
T: Isolate<Range<usize>>,
type Output = (S::Output, T::Output)
unsafe fn isolate_unchecked(self, (s, t): (S, T)) -> Self::Output
[src]
fn try_isolate(self, (s, t): (S, T)) -> Option<Self::Output>
[src]
impl<S> IsolateIndex<S> for RangeFrom<usize> where
S: Set + ValueType,
Range<usize>: IsolateIndex<S>,
[src]
S: Set + ValueType,
Range<usize>: IsolateIndex<S>,
type Output = <Range<usize> as IsolateIndex<S>>::Output
unsafe fn isolate_unchecked(self, set: S) -> Self::Output
[src]
fn try_isolate(self, set: S) -> Option<Self::Output>
[src]
impl<S: ValueType> IsolateIndex<S> for RangeTo<usize> where
Range<usize>: IsolateIndex<S>,
[src]
Range<usize>: IsolateIndex<S>,
type Output = <Range<usize> as IsolateIndex<S>>::Output
unsafe fn isolate_unchecked(self, set: S) -> Self::Output
[src]
fn try_isolate(self, set: S) -> Option<Self::Output>
[src]
impl<S: ValueType> IsolateIndex<S> for RangeFull where
S: Set,
Range<usize>: IsolateIndex<S>,
[src]
S: Set,
Range<usize>: IsolateIndex<S>,
type Output = <Range<usize> as IsolateIndex<S>>::Output
unsafe fn isolate_unchecked(self, set: S) -> Self::Output
[src]
fn try_isolate(self, set: S) -> Option<Self::Output>
[src]
impl<S: ValueType> IsolateIndex<S> for RangeInclusive<usize> where
S: Set,
Range<usize>: IsolateIndex<S>,
[src]
S: Set,
Range<usize>: IsolateIndex<S>,
type Output = <Range<usize> as IsolateIndex<S>>::Output
unsafe fn isolate_unchecked(self, set: S) -> Self::Output
[src]
fn try_isolate(self, set: S) -> Option<Self::Output>
[src]
impl<S: ValueType> IsolateIndex<S> for RangeToInclusive<usize> where
S: Set,
Range<usize>: IsolateIndex<S>,
[src]
S: Set,
Range<usize>: IsolateIndex<S>,
type Output = <Range<usize> as IsolateIndex<S>>::Output
unsafe fn isolate_unchecked(self, set: S) -> Self::Output
[src]
fn try_isolate(self, set: S) -> Option<Self::Output>
[src]
Implementors
impl<'a, T, I> IsolateIndex<&'a [T]> for I where
I: SliceIndex<[T]>,
<I as SliceIndex<[T]>>::Output: 'a,
[src]
I: SliceIndex<[T]>,
<I as SliceIndex<[T]>>::Output: 'a,
type Output = &'a <[T] as Index<I>>::Output
unsafe fn isolate_unchecked(self, set: &'a [T]) -> &'a <[T] as Index<I>>::Output
[src]
fn try_isolate(self, set: &'a [T]) -> Option<&'a <[T] as Index<I>>::Output>
[src]
impl<'a, T, I> IsolateIndex<&'a mut [T]> for I where
I: SliceIndex<[T]>,
<I as SliceIndex<[T]>>::Output: 'a,
[src]
I: SliceIndex<[T]>,
<I as SliceIndex<[T]>>::Output: 'a,
type Output = &'a mut <[T] as Index<I>>::Output
unsafe fn isolate_unchecked(
self,
set: &'a mut [T]
) -> &'a mut <[T] as Index<I>>::Output
[src]
self,
set: &'a mut [T]
) -> &'a mut <[T] as Index<I>>::Output
fn try_isolate(
self,
set: &'a mut [T]
) -> Option<&'a mut <[T] as Index<I>>::Output>
[src]
self,
set: &'a mut [T]
) -> Option<&'a mut <[T] as Index<I>>::Output>
impl<'a, T, N> IsolateIndex<&'a [T; 1]> for StaticRange<N> where
N: Unsigned + Array<T>,
<N as Array<T>>::Array: 'a,
[src]
N: Unsigned + Array<T>,
<N as Array<T>>::Array: 'a,
type Output = &'a N::Array
unsafe fn isolate_unchecked(self, set: &'a [T; 1]) -> Self::Output
[src]
fn try_isolate(self, set: &'a [T; 1]) -> Option<Self::Output>
[src]
impl<'a, T, N> IsolateIndex<&'a [T; 2]> for StaticRange<N> where
N: Unsigned + Array<T>,
<N as Array<T>>::Array: 'a,
[src]
N: Unsigned + Array<T>,
<N as Array<T>>::Array: 'a,
type Output = &'a N::Array
unsafe fn isolate_unchecked(self, set: &'a [T; 2]) -> Self::Output
[src]
fn try_isolate(self, set: &'a [T; 2]) -> Option<Self::Output>
[src]
impl<'a, T, N> IsolateIndex<&'a [T; 3]> for StaticRange<N> where
N: Unsigned + Array<T>,
<N as Array<T>>::Array: 'a,
[src]
N: Unsigned + Array<T>,
<N as Array<T>>::Array: 'a,
type Output = &'a N::Array
unsafe fn isolate_unchecked(self, set: &'a [T; 3]) -> Self::Output
[src]
fn try_isolate(self, set: &'a [T; 3]) -> Option<Self::Output>
[src]
impl<'a, T, N> IsolateIndex<&'a [T; 4]> for StaticRange<N> where
N: Unsigned + Array<T>,
<N as Array<T>>::Array: 'a,
[src]
N: Unsigned + Array<T>,
<N as Array<T>>::Array: 'a,
type Output = &'a N::Array
unsafe fn isolate_unchecked(self, set: &'a [T; 4]) -> Self::Output
[src]
fn try_isolate(self, set: &'a [T; 4]) -> Option<Self::Output>
[src]
impl<'a, T, N> IsolateIndex<&'a [T; 5]> for StaticRange<N> where
N: Unsigned + Array<T>,
<N as Array<T>>::Array: 'a,
[src]
N: Unsigned + Array<T>,
<N as Array<T>>::Array: 'a,
type Output = &'a N::Array
unsafe fn isolate_unchecked(self, set: &'a [T; 5]) -> Self::Output
[src]
fn try_isolate(self, set: &'a [T; 5]) -> Option<Self::Output>
[src]
impl<'a, T, N> IsolateIndex<&'a [T; 6]> for StaticRange<N> where
N: Unsigned + Array<T>,
<N as Array<T>>::Array: 'a,
[src]
N: Unsigned + Array<T>,
<N as Array<T>>::Array: 'a,
type Output = &'a N::Array
unsafe fn isolate_unchecked(self, set: &'a [T; 6]) -> Self::Output
[src]
fn try_isolate(self, set: &'a [T; 6]) -> Option<Self::Output>
[src]
impl<'a, T, N> IsolateIndex<&'a [T; 7]> for StaticRange<N> where
N: Unsigned + Array<T>,
<N as Array<T>>::Array: 'a,
[src]
N: Unsigned + Array<T>,
<N as Array<T>>::Array: 'a,
type Output = &'a N::Array
unsafe fn isolate_unchecked(self, set: &'a [T; 7]) -> Self::Output
[src]
fn try_isolate(self, set: &'a [T; 7]) -> Option<Self::Output>
[src]
impl<'a, T, N> IsolateIndex<&'a [T; 8]> for StaticRange<N> where
N: Unsigned + Array<T>,
<N as Array<T>>::Array: 'a,
[src]
N: Unsigned + Array<T>,
<N as Array<T>>::Array: 'a,
type Output = &'a N::Array
unsafe fn isolate_unchecked(self, set: &'a [T; 8]) -> Self::Output
[src]
fn try_isolate(self, set: &'a [T; 8]) -> Option<Self::Output>
[src]
impl<'a, T, N> IsolateIndex<&'a [T; 9]> for StaticRange<N> where
N: Unsigned + Array<T>,
<N as Array<T>>::Array: 'a,
[src]
N: Unsigned + Array<T>,
<N as Array<T>>::Array: 'a,
type Output = &'a N::Array
unsafe fn isolate_unchecked(self, set: &'a [T; 9]) -> Self::Output
[src]
fn try_isolate(self, set: &'a [T; 9]) -> Option<Self::Output>
[src]
impl<'a, T, N> IsolateIndex<&'a [T; 10]> for StaticRange<N> where
N: Unsigned + Array<T>,
<N as Array<T>>::Array: 'a,
[src]
N: Unsigned + Array<T>,
<N as Array<T>>::Array: 'a,
type Output = &'a N::Array
unsafe fn isolate_unchecked(self, set: &'a [T; 10]) -> Self::Output
[src]
fn try_isolate(self, set: &'a [T; 10]) -> Option<Self::Output>
[src]
impl<'a, T, N> IsolateIndex<&'a [T; 11]> for StaticRange<N> where
N: Unsigned + Array<T>,
<N as Array<T>>::Array: 'a,
[src]
N: Unsigned + Array<T>,
<N as Array<T>>::Array: 'a,
type Output = &'a N::Array
unsafe fn isolate_unchecked(self, set: &'a [T; 11]) -> Self::Output
[src]
fn try_isolate(self, set: &'a [T; 11]) -> Option<Self::Output>
[src]
impl<'a, T, N> IsolateIndex<&'a [T; 12]> for StaticRange<N> where
N: Unsigned + Array<T>,
<N as Array<T>>::Array: 'a,
[src]
N: Unsigned + Array<T>,
<N as Array<T>>::Array: 'a,
type Output = &'a N::Array
unsafe fn isolate_unchecked(self, set: &'a [T; 12]) -> Self::Output
[src]
fn try_isolate(self, set: &'a [T; 12]) -> Option<Self::Output>
[src]
impl<'a, T, N> IsolateIndex<&'a [T; 13]> for StaticRange<N> where
N: Unsigned + Array<T>,
<N as Array<T>>::Array: 'a,
[src]
N: Unsigned + Array<T>,
<N as Array<T>>::Array: 'a,
type Output = &'a N::Array
unsafe fn isolate_unchecked(self, set: &'a [T; 13]) -> Self::Output
[src]
fn try_isolate(self, set: &'a [T; 13]) -> Option<Self::Output>
[src]
impl<'a, T, N> IsolateIndex<&'a [T; 14]> for StaticRange<N> where
N: Unsigned + Array<T>,
<N as Array<T>>::Array: 'a,
[src]
N: Unsigned + Array<T>,
<N as Array<T>>::Array: 'a,
type Output = &'a N::Array
unsafe fn isolate_unchecked(self, set: &'a [T; 14]) -> Self::Output
[src]
fn try_isolate(self, set: &'a [T; 14]) -> Option<Self::Output>
[src]
impl<'a, T, N> IsolateIndex<&'a [T; 15]> for StaticRange<N> where
N: Unsigned + Array<T>,
<N as Array<T>>::Array: 'a,
[src]
N: Unsigned + Array<T>,
<N as Array<T>>::Array: 'a,
type Output = &'a N::Array
unsafe fn isolate_unchecked(self, set: &'a [T; 15]) -> Self::Output
[src]
fn try_isolate(self, set: &'a [T; 15]) -> Option<Self::Output>
[src]
impl<'a, T, N> IsolateIndex<&'a [T; 16]> for StaticRange<N> where
N: Unsigned + Array<T>,
<N as Array<T>>::Array: 'a,
[src]
N: Unsigned + Array<T>,
<N as Array<T>>::Array: 'a,
type Output = &'a N::Array
unsafe fn isolate_unchecked(self, set: &'a [T; 16]) -> Self::Output
[src]
fn try_isolate(self, set: &'a [T; 16]) -> Option<Self::Output>
[src]
impl<'a, T, N> IsolateIndex<&'a [T]> for StaticRange<N> where
N: Unsigned + Array<T>,
<N as Array<T>>::Array: 'a,
[src]
N: Unsigned + Array<T>,
<N as Array<T>>::Array: 'a,
type Output = &'a N::Array
unsafe fn isolate_unchecked(self, set: &'a [T]) -> Self::Output
[src]
fn try_isolate(self, set: &'a [T]) -> Option<Self::Output>
[src]
impl<'a, T, N> IsolateIndex<&'a mut [T]> for StaticRange<N> where
N: Unsigned + Array<T>,
<N as Array<T>>::Array: 'a,
[src]
N: Unsigned + Array<T>,
<N as Array<T>>::Array: 'a,
type Output = &'a mut N::Array
unsafe fn isolate_unchecked(self, set: &'a mut [T]) -> Self::Output
[src]
fn try_isolate(self, set: &'a mut [T]) -> Option<Self::Output>
[src]
impl<S, N> IsolateIndex<S> for StaticRange<N> where
S: Set + DynamicRangeIndexType,
N: Unsigned,
Range<usize>: IsolateIndex<S>,
[src]
S: Set + DynamicRangeIndexType,
N: Unsigned,
Range<usize>: IsolateIndex<S>,
type Output = <Range<usize> as IsolateIndex<S>>::Output
unsafe fn isolate_unchecked(self, set: S) -> Self::Output
[src]
fn try_isolate(self, set: S) -> Option<Self::Output>
[src]
impl<S, N, M> IsolateIndex<UniChunked<S, U<M>>> for StaticRange<N> where
S: Set,
M: Unsigned,
N: Unsigned + Mul<M>,
StaticRange<<N as Mul<M>>::Output>: IsolateIndex<S>,
[src]
S: Set,
M: Unsigned,
N: Unsigned + Mul<M>,
StaticRange<<N as Mul<M>>::Output>: IsolateIndex<S>,
type Output = UniChunked<<StaticRange<N::Output> as IsolateIndex<S>>::Output, U<M>>
unsafe fn isolate_unchecked(self, set: UniChunked<S, U<M>>) -> Self::Output
[src]
fn try_isolate(self, set: UniChunked<S, U<M>>) -> Option<Self::Output>
[src]
impl<S, O, N: Unsigned> IsolateIndex<Subset<S, O>> for StaticRange<N> where
Range<usize>: IsolateIndex<Subset<S, O>>,
[src]
Range<usize>: IsolateIndex<Subset<S, O>>,