Struct flatk::StaticRange [−][src]
pub struct StaticRange<N> {
pub start: usize,
pub phantom: PhantomData<N>,
}
Expand description
A type of range whose size is determined at compile time.
This represents a range [start..start + N::value()]
.
This aids UniChunked
types when indexing.
Fields
start: usize
phantom: PhantomData<N>
Implementations
Trait Implementations
impl<'a, S, T, N> GetIndex<'a, (S, T)> for StaticRange<N> where
S: Get<'a, StaticRange<N>>,
T: Get<'a, StaticRange<N>>,
N: Unsigned + Copy,
impl<'a, S, T, N> GetIndex<'a, (S, T)> for StaticRange<N> where
S: Get<'a, StaticRange<N>>,
T: Get<'a, StaticRange<N>>,
N: Unsigned + Copy,
impl<'a, S, N> GetIndex<'a, S> for StaticRange<N> where
S: Set + DynamicRangeIndexType,
N: Unsigned,
Range<usize>: GetIndex<'a, S>,
impl<'a, S, N> GetIndex<'a, S> for StaticRange<N> where
S: Set + DynamicRangeIndexType,
N: Unsigned,
Range<usize>: GetIndex<'a, S>,
impl<'a, S, N, M> GetIndex<'a, UniChunked<S, U<M>>> for StaticRange<N> where
S: Set,
M: Unsigned,
N: Unsigned + Mul<M>,
StaticRange<<N as Mul<M>>::Output>: GetIndex<'a, S>,
impl<'a, S, N, M> GetIndex<'a, UniChunked<S, U<M>>> for StaticRange<N> where
S: Set,
M: Unsigned,
N: Unsigned + Mul<M>,
StaticRange<<N as Mul<M>>::Output>: GetIndex<'a, S>,
Get a statically sized subview of the given UniChunked
collection.
type Output = UniChunked<<StaticRange<N::Output> as GetIndex<'a, S>>::Output, U<M>>
impl<'a, T, N> IsolateIndex<&'a [T; 1]> for StaticRange<N> where
N: Unsigned + Array<T>,
<N as Array<T>>::Array: 'a,
impl<'a, T, N> IsolateIndex<&'a [T; 1]> for StaticRange<N> where
N: Unsigned + Array<T>,
<N as Array<T>>::Array: 'a,
Attempts to isolate a value in the given set at this index. Read more
impl<'a, T, N> IsolateIndex<&'a [T; 10]> for StaticRange<N> where
N: Unsigned + Array<T>,
<N as Array<T>>::Array: 'a,
impl<'a, T, N> IsolateIndex<&'a [T; 10]> for StaticRange<N> where
N: Unsigned + Array<T>,
<N as Array<T>>::Array: 'a,
Attempts to isolate a value in the given set at this index. Read more
impl<'a, T, N> IsolateIndex<&'a [T; 11]> for StaticRange<N> where
N: Unsigned + Array<T>,
<N as Array<T>>::Array: 'a,
impl<'a, T, N> IsolateIndex<&'a [T; 11]> for StaticRange<N> where
N: Unsigned + Array<T>,
<N as Array<T>>::Array: 'a,
Attempts to isolate a value in the given set at this index. Read more
impl<'a, T, N> IsolateIndex<&'a [T; 12]> for StaticRange<N> where
N: Unsigned + Array<T>,
<N as Array<T>>::Array: 'a,
impl<'a, T, N> IsolateIndex<&'a [T; 12]> for StaticRange<N> where
N: Unsigned + Array<T>,
<N as Array<T>>::Array: 'a,
Attempts to isolate a value in the given set at this index. Read more
impl<'a, T, N> IsolateIndex<&'a [T; 13]> for StaticRange<N> where
N: Unsigned + Array<T>,
<N as Array<T>>::Array: 'a,
impl<'a, T, N> IsolateIndex<&'a [T; 13]> for StaticRange<N> where
N: Unsigned + Array<T>,
<N as Array<T>>::Array: 'a,
Attempts to isolate a value in the given set at this index. Read more
impl<'a, T, N> IsolateIndex<&'a [T; 14]> for StaticRange<N> where
N: Unsigned + Array<T>,
<N as Array<T>>::Array: 'a,
impl<'a, T, N> IsolateIndex<&'a [T; 14]> for StaticRange<N> where
N: Unsigned + Array<T>,
<N as Array<T>>::Array: 'a,
Attempts to isolate a value in the given set at this index. Read more
impl<'a, T, N> IsolateIndex<&'a [T; 15]> for StaticRange<N> where
N: Unsigned + Array<T>,
<N as Array<T>>::Array: 'a,
impl<'a, T, N> IsolateIndex<&'a [T; 15]> for StaticRange<N> where
N: Unsigned + Array<T>,
<N as Array<T>>::Array: 'a,
Attempts to isolate a value in the given set at this index. Read more
impl<'a, T, N> IsolateIndex<&'a [T; 16]> for StaticRange<N> where
N: Unsigned + Array<T>,
<N as Array<T>>::Array: 'a,
impl<'a, T, N> IsolateIndex<&'a [T; 16]> for StaticRange<N> where
N: Unsigned + Array<T>,
<N as Array<T>>::Array: 'a,
Attempts to isolate a value in the given set at this index. Read more
impl<'a, T, N> IsolateIndex<&'a [T; 2]> for StaticRange<N> where
N: Unsigned + Array<T>,
<N as Array<T>>::Array: 'a,
impl<'a, T, N> IsolateIndex<&'a [T; 2]> for StaticRange<N> where
N: Unsigned + Array<T>,
<N as Array<T>>::Array: 'a,
Attempts to isolate a value in the given set at this index. Read more
impl<'a, T, N> IsolateIndex<&'a [T; 3]> for StaticRange<N> where
N: Unsigned + Array<T>,
<N as Array<T>>::Array: 'a,
impl<'a, T, N> IsolateIndex<&'a [T; 3]> for StaticRange<N> where
N: Unsigned + Array<T>,
<N as Array<T>>::Array: 'a,
Attempts to isolate a value in the given set at this index. Read more
impl<'a, T, N> IsolateIndex<&'a [T; 4]> for StaticRange<N> where
N: Unsigned + Array<T>,
<N as Array<T>>::Array: 'a,
impl<'a, T, N> IsolateIndex<&'a [T; 4]> for StaticRange<N> where
N: Unsigned + Array<T>,
<N as Array<T>>::Array: 'a,
Attempts to isolate a value in the given set at this index. Read more
impl<'a, T, N> IsolateIndex<&'a [T; 5]> for StaticRange<N> where
N: Unsigned + Array<T>,
<N as Array<T>>::Array: 'a,
impl<'a, T, N> IsolateIndex<&'a [T; 5]> for StaticRange<N> where
N: Unsigned + Array<T>,
<N as Array<T>>::Array: 'a,
Attempts to isolate a value in the given set at this index. Read more
impl<'a, T, N> IsolateIndex<&'a [T; 6]> for StaticRange<N> where
N: Unsigned + Array<T>,
<N as Array<T>>::Array: 'a,
impl<'a, T, N> IsolateIndex<&'a [T; 6]> for StaticRange<N> where
N: Unsigned + Array<T>,
<N as Array<T>>::Array: 'a,
Attempts to isolate a value in the given set at this index. Read more
impl<'a, T, N> IsolateIndex<&'a [T; 7]> for StaticRange<N> where
N: Unsigned + Array<T>,
<N as Array<T>>::Array: 'a,
impl<'a, T, N> IsolateIndex<&'a [T; 7]> for StaticRange<N> where
N: Unsigned + Array<T>,
<N as Array<T>>::Array: 'a,
Attempts to isolate a value in the given set at this index. Read more
impl<'a, T, N> IsolateIndex<&'a [T; 8]> for StaticRange<N> where
N: Unsigned + Array<T>,
<N as Array<T>>::Array: 'a,
impl<'a, T, N> IsolateIndex<&'a [T; 8]> for StaticRange<N> where
N: Unsigned + Array<T>,
<N as Array<T>>::Array: 'a,
Attempts to isolate a value in the given set at this index. Read more
impl<'a, T, N> IsolateIndex<&'a [T; 9]> for StaticRange<N> where
N: Unsigned + Array<T>,
<N as Array<T>>::Array: 'a,
impl<'a, T, N> IsolateIndex<&'a [T; 9]> for StaticRange<N> where
N: Unsigned + Array<T>,
<N as Array<T>>::Array: 'a,
Attempts to isolate a value in the given set at this index. Read more
impl<'a, T, N> IsolateIndex<&'a [T]> for StaticRange<N> where
N: Unsigned + Array<T>,
<N as Array<T>>::Array: 'a,
impl<'a, T, N> IsolateIndex<&'a [T]> for StaticRange<N> where
N: Unsigned + Array<T>,
<N as Array<T>>::Array: 'a,
impl<'a, T, N> IsolateIndex<&'a mut [T]> for StaticRange<N> where
N: Unsigned + Array<T>,
<N as Array<T>>::Array: 'a,
impl<'a, T, N> IsolateIndex<&'a mut [T]> for StaticRange<N> where
N: Unsigned + Array<T>,
<N as Array<T>>::Array: 'a,
impl<S, N> IsolateIndex<S> for StaticRange<N> where
S: Set + DynamicRangeIndexType,
N: Unsigned,
Range<usize>: IsolateIndex<S>,
impl<S, N> IsolateIndex<S> for StaticRange<N> where
S: Set + DynamicRangeIndexType,
N: Unsigned,
Range<usize>: IsolateIndex<S>,
impl<S, O, N: Unsigned> IsolateIndex<Subset<S, O>> for StaticRange<N> where
Range<usize>: IsolateIndex<Subset<S, O>>,
impl<S, O, N: Unsigned> IsolateIndex<Subset<S, O>> for StaticRange<N> where
Range<usize>: IsolateIndex<Subset<S, O>>,
Attempts to isolate a value in the given set at this index. Read more
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>,
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>,
type Output = UniChunked<<StaticRange<N::Output> as IsolateIndex<S>>::Output, U<M>>
Attempts to isolate a value in the given set at this index. Read more
Attempts to isolate a value in the given set at this index. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl<N> RefUnwindSafe for StaticRange<N> where
N: RefUnwindSafe,
impl<N> Send for StaticRange<N> where
N: Send,
impl<N> Sync for StaticRange<N> where
N: Sync,
impl<N> Unpin for StaticRange<N> where
N: Unpin,
impl<N> UnwindSafe for StaticRange<N> where
N: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
type Output = <I as IsolateIndex<S>>::Output
Unchecked version of isolate
. Read more