[−][src]Struct flatk::StaticRange
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>
Trait Implementations
impl<N: Unsigned> BoundedRange for StaticRange<N>
[src]
type Index = usize
fn start(&self) -> usize
[src]
fn end(&self) -> usize
[src]
fn distance(&self) -> Self::Index
[src]
impl<N: Clone> Clone for StaticRange<N>
[src]
fn clone(&self) -> StaticRange<N>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<N: Copy> Copy for StaticRange<N>
[src]
impl<N: Debug> Debug for StaticRange<N>
[src]
impl<'a, T, N> GetIndex<'a, &'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,
impl<'a, T, N> GetIndex<'a, &'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,
impl<'a, T, N> GetIndex<'a, &'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,
impl<'a, T, N> GetIndex<'a, &'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,
impl<'a, T, N> GetIndex<'a, &'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,
impl<'a, T, N> GetIndex<'a, &'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,
impl<'a, T, N> GetIndex<'a, &'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,
impl<'a, T, N> GetIndex<'a, &'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,
impl<'a, T, N> GetIndex<'a, &'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,
impl<'a, T, N> GetIndex<'a, &'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,
impl<'a, T, N> GetIndex<'a, &'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,
impl<'a, T, N> GetIndex<'a, &'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,
impl<'a, T, N> GetIndex<'a, &'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,
impl<'a, T, N> GetIndex<'a, &'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,
impl<'a, T, N> GetIndex<'a, &'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,
impl<'a, T, N> GetIndex<'a, &'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,
impl<'a, T, N> GetIndex<'a, &'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,
impl<'a, S, N> GetIndex<'a, S> for StaticRange<N> where
S: Set + ValueType,
N: Unsigned,
Range<usize>: GetIndex<'a, S>,
[src]
S: Set + ValueType,
N: Unsigned,
Range<usize>: GetIndex<'a, S>,
type Output = <Range<usize> as GetIndex<'a, S>>::Output
fn get(self, set: &S) -> Option<Self::Output>
[src]
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,
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,
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,
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,
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,
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,
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,
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,
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,
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,
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,
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,
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,
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,
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,
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,
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,
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
fn try_isolate(self, set: &'a mut [T]) -> Option<Self::Output>
[src]
impl<S, O, N: Unsigned> IsolateIndex<Chunked<S, O>> for StaticRange<N> where
Range<usize>: IsolateIndex<Chunked<S, O>>,
[src]
Range<usize>: IsolateIndex<Chunked<S, O>>,
type Output = <Range<usize> as IsolateIndex<Chunked<S, O>>>::Output
fn try_isolate(self, set: Chunked<S, O>) -> Option<Self::Output>
[src]
impl<S, I, N: Unsigned> IsolateIndex<Select<S, I>> for StaticRange<N> where
Range<usize>: IsolateIndex<Select<S, I>>,
[src]
Range<usize>: IsolateIndex<Select<S, I>>,
type Output = <Range<usize> as IsolateIndex<Select<S, I>>>::Output
fn try_isolate(self, set: Select<S, I>) -> Option<Self::Output>
[src]
impl<S, T, I, N: Unsigned> IsolateIndex<Sparse<S, T, I>> for StaticRange<N> where
Range<usize>: IsolateIndex<Sparse<S, T, I>>,
[src]
Range<usize>: IsolateIndex<Sparse<S, T, I>>,
type Output = <Range<usize> as IsolateIndex<Sparse<S, T, I>>>::Output
fn try_isolate(self, set: Sparse<S, T, I>) -> 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>>,
type Output = <Range<usize> as IsolateIndex<Subset<S, O>>>::Output
fn try_isolate(self, set: Subset<S, O>) -> 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>>
fn try_isolate(self, set: UniChunked<S, U<M>>) -> Option<Self::Output>
[src]
impl<S, N: Unsigned> IsolateIndex<UniChunked<S, usize>> for StaticRange<N> where
Range<usize>: IsolateIndex<ChunkedN<S>>,
[src]
Range<usize>: IsolateIndex<ChunkedN<S>>,
type Output = <Range<usize> as IsolateIndex<ChunkedN<S>>>::Output
fn try_isolate(self, set: ChunkedN<S>) -> Option<Self::Output>
[src]
impl<N: PartialEq> PartialEq<StaticRange<N>> for StaticRange<N>
[src]
fn eq(&self, other: &StaticRange<N>) -> bool
[src]
fn ne(&self, other: &StaticRange<N>) -> bool
[src]
impl<N: Unsigned> Set for StaticRange<N>
[src]
type Elem = usize
Owned element of the set.
type Atom = usize
The most basic element contained by this collection. If this collection contains other collections, this type should be different than Elem
. Read more
fn len(&self) -> usize
[src]
fn is_empty(&self) -> bool
[src]
impl<N> StructuralPartialEq for StaticRange<N>
[src]
Auto Trait Implementations
impl<N> RefUnwindSafe for StaticRange<N> where
N: RefUnwindSafe,
N: RefUnwindSafe,
impl<N> Send for StaticRange<N> where
N: Send,
N: Send,
impl<N> Sync for StaticRange<N> where
N: Sync,
N: Sync,
impl<N> Unpin for StaticRange<N> where
N: Unpin,
N: Unpin,
impl<N> UnwindSafe for StaticRange<N> where
N: UnwindSafe,
N: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> AsSlice<T> for T
[src]
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<'a, S, I> Get<'a, I> for S where
I: GetIndex<'a, S>,
[src]
I: GetIndex<'a, S>,
type Output = <I as GetIndex<'a, S>>::Output
fn get(&Self, I) -> Option<<I as GetIndex<'a, S>>::Output>
[src]
fn at(&self, idx: I) -> Self::Output
[src]
impl<'a, T, I> GetIndex<'a, &'a [T]> for I where
I: SliceIndex<[T]>,
<[T] as Index<I>>::Output: 'a,
[src]
I: SliceIndex<[T]>,
<[T] as Index<I>>::Output: 'a,
type Output = &'a <[T] as Index<I>>::Output
fn get(Self, &&'a [T]) -> Option<<I as GetIndex<'a, &'a [T]>>::Output>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<S, I> Isolate<I> for S where
I: IsolateIndex<S>,
[src]
I: IsolateIndex<S>,
type Output = <I as IsolateIndex<S>>::Output
fn try_isolate(Self, I) -> Option<<S as Isolate<I>>::Output>
[src]
fn isolate(self, idx: I) -> Self::Output where
Self: Sized,
[src]
Self: Sized,
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
fn try_isolate(Self, &'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
fn try_isolate(Self, &'a mut [T]) -> Option<&'a mut <[T] as Index<I>>::Output>
[src]
impl<T> Same<T> for T
[src]
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
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>,