Struct StaticRange

Source
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§

Source§

impl<N> StaticRange<N>

Source

pub fn new(start: usize) -> Self

Trait Implementations§

Source§

impl<N: Unsigned> BoundedRange for StaticRange<N>

Source§

type Index = usize

Source§

fn start(&self) -> usize

Source§

fn end(&self) -> usize

Source§

fn distance(&self) -> Self::Index

Source§

impl<N: Clone> Clone for StaticRange<N>

Source§

fn clone(&self) -> StaticRange<N>

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<N: Debug> Debug for StaticRange<N>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'a, T, N> GetIndex<'a, &'a [T]> for StaticRange<N>
where N: Unsigned + Array<T>, <N as Array<T>>::Array: 'a,

Source§

type Output = &'a <N as Array<T>>::Array

Source§

fn get(self, set: &&'a [T]) -> Option<Self::Output>

Gets the value in the set at this index.
Source§

unsafe fn at_unchecked(self, set: &&'a [T]) -> Self::Output

Gets the value in the set at this index. Read more
Source§

impl<'a, T, N> GetIndex<'a, &'a [T; 1]> for StaticRange<N>
where N: Unsigned + Array<T>, <N as Array<T>>::Array: 'a,

Source§

type Output = &'a <N as Array<T>>::Array

Source§

fn get(self, set: &&'a [T; 1]) -> Option<Self::Output>

Gets the value in the set at this index.
Source§

unsafe fn at_unchecked(self, set: &S) -> Self::Output
where Self: Sized,

Gets the value in the set at this index. Read more
Source§

impl<'a, T, N> GetIndex<'a, &'a [T; 10]> for StaticRange<N>
where N: Unsigned + Array<T>, <N as Array<T>>::Array: 'a,

Source§

type Output = &'a <N as Array<T>>::Array

Source§

fn get(self, set: &&'a [T; 10]) -> Option<Self::Output>

Gets the value in the set at this index.
Source§

unsafe fn at_unchecked(self, set: &S) -> Self::Output
where Self: Sized,

Gets the value in the set at this index. Read more
Source§

impl<'a, T, N> GetIndex<'a, &'a [T; 11]> for StaticRange<N>
where N: Unsigned + Array<T>, <N as Array<T>>::Array: 'a,

Source§

type Output = &'a <N as Array<T>>::Array

Source§

fn get(self, set: &&'a [T; 11]) -> Option<Self::Output>

Gets the value in the set at this index.
Source§

unsafe fn at_unchecked(self, set: &S) -> Self::Output
where Self: Sized,

Gets the value in the set at this index. Read more
Source§

impl<'a, T, N> GetIndex<'a, &'a [T; 12]> for StaticRange<N>
where N: Unsigned + Array<T>, <N as Array<T>>::Array: 'a,

Source§

type Output = &'a <N as Array<T>>::Array

Source§

fn get(self, set: &&'a [T; 12]) -> Option<Self::Output>

Gets the value in the set at this index.
Source§

unsafe fn at_unchecked(self, set: &S) -> Self::Output
where Self: Sized,

Gets the value in the set at this index. Read more
Source§

impl<'a, T, N> GetIndex<'a, &'a [T; 13]> for StaticRange<N>
where N: Unsigned + Array<T>, <N as Array<T>>::Array: 'a,

Source§

type Output = &'a <N as Array<T>>::Array

Source§

fn get(self, set: &&'a [T; 13]) -> Option<Self::Output>

Gets the value in the set at this index.
Source§

unsafe fn at_unchecked(self, set: &S) -> Self::Output
where Self: Sized,

Gets the value in the set at this index. Read more
Source§

impl<'a, T, N> GetIndex<'a, &'a [T; 14]> for StaticRange<N>
where N: Unsigned + Array<T>, <N as Array<T>>::Array: 'a,

Source§

type Output = &'a <N as Array<T>>::Array

Source§

fn get(self, set: &&'a [T; 14]) -> Option<Self::Output>

Gets the value in the set at this index.
Source§

unsafe fn at_unchecked(self, set: &S) -> Self::Output
where Self: Sized,

Gets the value in the set at this index. Read more
Source§

impl<'a, T, N> GetIndex<'a, &'a [T; 15]> for StaticRange<N>
where N: Unsigned + Array<T>, <N as Array<T>>::Array: 'a,

Source§

type Output = &'a <N as Array<T>>::Array

Source§

fn get(self, set: &&'a [T; 15]) -> Option<Self::Output>

Gets the value in the set at this index.
Source§

unsafe fn at_unchecked(self, set: &S) -> Self::Output
where Self: Sized,

Gets the value in the set at this index. Read more
Source§

impl<'a, T, N> GetIndex<'a, &'a [T; 16]> for StaticRange<N>
where N: Unsigned + Array<T>, <N as Array<T>>::Array: 'a,

Source§

type Output = &'a <N as Array<T>>::Array

Source§

fn get(self, set: &&'a [T; 16]) -> Option<Self::Output>

Gets the value in the set at this index.
Source§

unsafe fn at_unchecked(self, set: &S) -> Self::Output
where Self: Sized,

Gets the value in the set at this index. Read more
Source§

impl<'a, T, N> GetIndex<'a, &'a [T; 2]> for StaticRange<N>
where N: Unsigned + Array<T>, <N as Array<T>>::Array: 'a,

Source§

type Output = &'a <N as Array<T>>::Array

Source§

fn get(self, set: &&'a [T; 2]) -> Option<Self::Output>

Gets the value in the set at this index.
Source§

unsafe fn at_unchecked(self, set: &S) -> Self::Output
where Self: Sized,

Gets the value in the set at this index. Read more
Source§

impl<'a, T, N> GetIndex<'a, &'a [T; 3]> for StaticRange<N>
where N: Unsigned + Array<T>, <N as Array<T>>::Array: 'a,

Source§

type Output = &'a <N as Array<T>>::Array

Source§

fn get(self, set: &&'a [T; 3]) -> Option<Self::Output>

Gets the value in the set at this index.
Source§

unsafe fn at_unchecked(self, set: &S) -> Self::Output
where Self: Sized,

Gets the value in the set at this index. Read more
Source§

impl<'a, T, N> GetIndex<'a, &'a [T; 4]> for StaticRange<N>
where N: Unsigned + Array<T>, <N as Array<T>>::Array: 'a,

Source§

type Output = &'a <N as Array<T>>::Array

Source§

fn get(self, set: &&'a [T; 4]) -> Option<Self::Output>

Gets the value in the set at this index.
Source§

unsafe fn at_unchecked(self, set: &S) -> Self::Output
where Self: Sized,

Gets the value in the set at this index. Read more
Source§

impl<'a, T, N> GetIndex<'a, &'a [T; 5]> for StaticRange<N>
where N: Unsigned + Array<T>, <N as Array<T>>::Array: 'a,

Source§

type Output = &'a <N as Array<T>>::Array

Source§

fn get(self, set: &&'a [T; 5]) -> Option<Self::Output>

Gets the value in the set at this index.
Source§

unsafe fn at_unchecked(self, set: &S) -> Self::Output
where Self: Sized,

Gets the value in the set at this index. Read more
Source§

impl<'a, T, N> GetIndex<'a, &'a [T; 6]> for StaticRange<N>
where N: Unsigned + Array<T>, <N as Array<T>>::Array: 'a,

Source§

type Output = &'a <N as Array<T>>::Array

Source§

fn get(self, set: &&'a [T; 6]) -> Option<Self::Output>

Gets the value in the set at this index.
Source§

unsafe fn at_unchecked(self, set: &S) -> Self::Output
where Self: Sized,

Gets the value in the set at this index. Read more
Source§

impl<'a, T, N> GetIndex<'a, &'a [T; 7]> for StaticRange<N>
where N: Unsigned + Array<T>, <N as Array<T>>::Array: 'a,

Source§

type Output = &'a <N as Array<T>>::Array

Source§

fn get(self, set: &&'a [T; 7]) -> Option<Self::Output>

Gets the value in the set at this index.
Source§

unsafe fn at_unchecked(self, set: &S) -> Self::Output
where Self: Sized,

Gets the value in the set at this index. Read more
Source§

impl<'a, T, N> GetIndex<'a, &'a [T; 8]> for StaticRange<N>
where N: Unsigned + Array<T>, <N as Array<T>>::Array: 'a,

Source§

type Output = &'a <N as Array<T>>::Array

Source§

fn get(self, set: &&'a [T; 8]) -> Option<Self::Output>

Gets the value in the set at this index.
Source§

unsafe fn at_unchecked(self, set: &S) -> Self::Output
where Self: Sized,

Gets the value in the set at this index. Read more
Source§

impl<'a, T, N> GetIndex<'a, &'a [T; 9]> for StaticRange<N>
where N: Unsigned + Array<T>, <N as Array<T>>::Array: 'a,

Source§

type Output = &'a <N as Array<T>>::Array

Source§

fn get(self, set: &&'a [T; 9]) -> Option<Self::Output>

Gets the value in the set at this index.
Source§

unsafe fn at_unchecked(self, set: &S) -> Self::Output
where Self: Sized,

Gets the value in the set at this index. Read more
Source§

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,

Source§

type Output = (<S as Get<'a, StaticRange<N>>>::Output, <T as Get<'a, StaticRange<N>>>::Output)

Source§

fn get(self, (s, t): &(S, T)) -> Option<Self::Output>

Gets the value in the set at this index.
Source§

unsafe fn at_unchecked(self, set: &S) -> Self::Output
where Self: Sized,

Gets the value in the set at this index. Read more
Source§

impl<'a, S, N> GetIndex<'a, S> for StaticRange<N>

Source§

type Output = <Range<usize> as GetIndex<'a, S>>::Output

Source§

fn get(self, set: &S) -> Option<Self::Output>

Gets the value in the set at this index.
Source§

unsafe fn at_unchecked(self, set: &S) -> Self::Output
where Self: Sized,

Gets the value in the set at this index. Read more
Source§

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>,

Source§

fn get(self, chunked: &UniChunked<S, U<M>>) -> Option<Self::Output>

Get a statically sized subview of the given UniChunked collection.

Source§

type Output = UniChunked<<StaticRange<<N as Mul<M>>::Output> as GetIndex<'a, S>>::Output, U<M>>

Source§

unsafe fn at_unchecked(self, set: &S) -> Self::Output
where Self: Sized,

Gets the value in the set at this index. Read more
Source§

impl<'a, T, N> IsolateIndex<&'a [T]> for StaticRange<N>
where N: Unsigned + Array<T>, <N as Array<T>>::Array: 'a,

Source§

type Output = &'a <N as Array<T>>::Array

Source§

unsafe fn isolate_unchecked(self, set: &'a [T]) -> Self::Output

Attempts to isolate a value in the given set at this index. Read more
Source§

fn try_isolate(self, set: &'a [T]) -> Option<Self::Output>

Attempts to isolate a value in the given set at this index. Read more
Source§

impl<'a, T, N> IsolateIndex<&'a [T; 1]> for StaticRange<N>
where N: Unsigned + Array<T>, <N as Array<T>>::Array: 'a,

Source§

type Output = &'a <N as Array<T>>::Array

Source§

unsafe fn isolate_unchecked(self, set: &'a [T; 1]) -> Self::Output

Attempts to isolate a value in the given set at this index. Read more
Source§

fn try_isolate(self, set: &'a [T; 1]) -> Option<Self::Output>

Attempts to isolate a value in the given set at this index. Read more
Source§

impl<'a, T, N> IsolateIndex<&'a [T; 10]> for StaticRange<N>
where N: Unsigned + Array<T>, <N as Array<T>>::Array: 'a,

Source§

type Output = &'a <N as Array<T>>::Array

Source§

unsafe fn isolate_unchecked(self, set: &'a [T; 10]) -> Self::Output

Attempts to isolate a value in the given set at this index. Read more
Source§

fn try_isolate(self, set: &'a [T; 10]) -> Option<Self::Output>

Attempts to isolate a value in the given set at this index. Read more
Source§

impl<'a, T, N> IsolateIndex<&'a [T; 11]> for StaticRange<N>
where N: Unsigned + Array<T>, <N as Array<T>>::Array: 'a,

Source§

type Output = &'a <N as Array<T>>::Array

Source§

unsafe fn isolate_unchecked(self, set: &'a [T; 11]) -> Self::Output

Attempts to isolate a value in the given set at this index. Read more
Source§

fn try_isolate(self, set: &'a [T; 11]) -> Option<Self::Output>

Attempts to isolate a value in the given set at this index. Read more
Source§

impl<'a, T, N> IsolateIndex<&'a [T; 12]> for StaticRange<N>
where N: Unsigned + Array<T>, <N as Array<T>>::Array: 'a,

Source§

type Output = &'a <N as Array<T>>::Array

Source§

unsafe fn isolate_unchecked(self, set: &'a [T; 12]) -> Self::Output

Attempts to isolate a value in the given set at this index. Read more
Source§

fn try_isolate(self, set: &'a [T; 12]) -> Option<Self::Output>

Attempts to isolate a value in the given set at this index. Read more
Source§

impl<'a, T, N> IsolateIndex<&'a [T; 13]> for StaticRange<N>
where N: Unsigned + Array<T>, <N as Array<T>>::Array: 'a,

Source§

type Output = &'a <N as Array<T>>::Array

Source§

unsafe fn isolate_unchecked(self, set: &'a [T; 13]) -> Self::Output

Attempts to isolate a value in the given set at this index. Read more
Source§

fn try_isolate(self, set: &'a [T; 13]) -> Option<Self::Output>

Attempts to isolate a value in the given set at this index. Read more
Source§

impl<'a, T, N> IsolateIndex<&'a [T; 14]> for StaticRange<N>
where N: Unsigned + Array<T>, <N as Array<T>>::Array: 'a,

Source§

type Output = &'a <N as Array<T>>::Array

Source§

unsafe fn isolate_unchecked(self, set: &'a [T; 14]) -> Self::Output

Attempts to isolate a value in the given set at this index. Read more
Source§

fn try_isolate(self, set: &'a [T; 14]) -> Option<Self::Output>

Attempts to isolate a value in the given set at this index. Read more
Source§

impl<'a, T, N> IsolateIndex<&'a [T; 15]> for StaticRange<N>
where N: Unsigned + Array<T>, <N as Array<T>>::Array: 'a,

Source§

type Output = &'a <N as Array<T>>::Array

Source§

unsafe fn isolate_unchecked(self, set: &'a [T; 15]) -> Self::Output

Attempts to isolate a value in the given set at this index. Read more
Source§

fn try_isolate(self, set: &'a [T; 15]) -> Option<Self::Output>

Attempts to isolate a value in the given set at this index. Read more
Source§

impl<'a, T, N> IsolateIndex<&'a [T; 16]> for StaticRange<N>
where N: Unsigned + Array<T>, <N as Array<T>>::Array: 'a,

Source§

type Output = &'a <N as Array<T>>::Array

Source§

unsafe fn isolate_unchecked(self, set: &'a [T; 16]) -> Self::Output

Attempts to isolate a value in the given set at this index. Read more
Source§

fn try_isolate(self, set: &'a [T; 16]) -> Option<Self::Output>

Attempts to isolate a value in the given set at this index. Read more
Source§

impl<'a, T, N> IsolateIndex<&'a [T; 2]> for StaticRange<N>
where N: Unsigned + Array<T>, <N as Array<T>>::Array: 'a,

Source§

type Output = &'a <N as Array<T>>::Array

Source§

unsafe fn isolate_unchecked(self, set: &'a [T; 2]) -> Self::Output

Attempts to isolate a value in the given set at this index. Read more
Source§

fn try_isolate(self, set: &'a [T; 2]) -> Option<Self::Output>

Attempts to isolate a value in the given set at this index. Read more
Source§

impl<'a, T, N> IsolateIndex<&'a [T; 3]> for StaticRange<N>
where N: Unsigned + Array<T>, <N as Array<T>>::Array: 'a,

Source§

type Output = &'a <N as Array<T>>::Array

Source§

unsafe fn isolate_unchecked(self, set: &'a [T; 3]) -> Self::Output

Attempts to isolate a value in the given set at this index. Read more
Source§

fn try_isolate(self, set: &'a [T; 3]) -> Option<Self::Output>

Attempts to isolate a value in the given set at this index. Read more
Source§

impl<'a, T, N> IsolateIndex<&'a [T; 4]> for StaticRange<N>
where N: Unsigned + Array<T>, <N as Array<T>>::Array: 'a,

Source§

type Output = &'a <N as Array<T>>::Array

Source§

unsafe fn isolate_unchecked(self, set: &'a [T; 4]) -> Self::Output

Attempts to isolate a value in the given set at this index. Read more
Source§

fn try_isolate(self, set: &'a [T; 4]) -> Option<Self::Output>

Attempts to isolate a value in the given set at this index. Read more
Source§

impl<'a, T, N> IsolateIndex<&'a [T; 5]> for StaticRange<N>
where N: Unsigned + Array<T>, <N as Array<T>>::Array: 'a,

Source§

type Output = &'a <N as Array<T>>::Array

Source§

unsafe fn isolate_unchecked(self, set: &'a [T; 5]) -> Self::Output

Attempts to isolate a value in the given set at this index. Read more
Source§

fn try_isolate(self, set: &'a [T; 5]) -> Option<Self::Output>

Attempts to isolate a value in the given set at this index. Read more
Source§

impl<'a, T, N> IsolateIndex<&'a [T; 6]> for StaticRange<N>
where N: Unsigned + Array<T>, <N as Array<T>>::Array: 'a,

Source§

type Output = &'a <N as Array<T>>::Array

Source§

unsafe fn isolate_unchecked(self, set: &'a [T; 6]) -> Self::Output

Attempts to isolate a value in the given set at this index. Read more
Source§

fn try_isolate(self, set: &'a [T; 6]) -> Option<Self::Output>

Attempts to isolate a value in the given set at this index. Read more
Source§

impl<'a, T, N> IsolateIndex<&'a [T; 7]> for StaticRange<N>
where N: Unsigned + Array<T>, <N as Array<T>>::Array: 'a,

Source§

type Output = &'a <N as Array<T>>::Array

Source§

unsafe fn isolate_unchecked(self, set: &'a [T; 7]) -> Self::Output

Attempts to isolate a value in the given set at this index. Read more
Source§

fn try_isolate(self, set: &'a [T; 7]) -> Option<Self::Output>

Attempts to isolate a value in the given set at this index. Read more
Source§

impl<'a, T, N> IsolateIndex<&'a [T; 8]> for StaticRange<N>
where N: Unsigned + Array<T>, <N as Array<T>>::Array: 'a,

Source§

type Output = &'a <N as Array<T>>::Array

Source§

unsafe fn isolate_unchecked(self, set: &'a [T; 8]) -> Self::Output

Attempts to isolate a value in the given set at this index. Read more
Source§

fn try_isolate(self, set: &'a [T; 8]) -> Option<Self::Output>

Attempts to isolate a value in the given set at this index. Read more
Source§

impl<'a, T, N> IsolateIndex<&'a [T; 9]> for StaticRange<N>
where N: Unsigned + Array<T>, <N as Array<T>>::Array: 'a,

Source§

type Output = &'a <N as Array<T>>::Array

Source§

unsafe fn isolate_unchecked(self, set: &'a [T; 9]) -> Self::Output

Attempts to isolate a value in the given set at this index. Read more
Source§

fn try_isolate(self, set: &'a [T; 9]) -> Option<Self::Output>

Attempts to isolate a value in the given set at this index. Read more
Source§

impl<'a, T, N> IsolateIndex<&'a mut [T]> for StaticRange<N>
where N: Unsigned + Array<T>, <N as Array<T>>::Array: 'a,

Source§

type Output = &'a mut <N as Array<T>>::Array

Source§

unsafe fn isolate_unchecked(self, set: &'a mut [T]) -> Self::Output

Attempts to isolate a value in the given set at this index. Read more
Source§

fn try_isolate(self, set: &'a mut [T]) -> Option<Self::Output>

Attempts to isolate a value in the given set at this index. Read more
Source§

impl<S, N> IsolateIndex<S> for StaticRange<N>

Source§

type Output = <Range<usize> as IsolateIndex<S>>::Output

Source§

unsafe fn isolate_unchecked(self, set: S) -> Self::Output

Attempts to isolate a value in the given set at this index. Read more
Source§

fn try_isolate(self, set: S) -> Option<Self::Output>

Attempts to isolate a value in the given set at this index. Read more
Source§

impl<S, O, N: Unsigned> IsolateIndex<Subset<S, O>> for StaticRange<N>
where Range<usize>: IsolateIndex<Subset<S, O>>,

Source§

type Output = <Range<usize> as IsolateIndex<Subset<S, O>>>::Output

Source§

unsafe fn isolate_unchecked(self, set: Subset<S, O>) -> Self::Output

Attempts to isolate a value in the given set at this index. Read more
Source§

fn try_isolate(self, set: Subset<S, O>) -> Option<Self::Output>

Attempts to isolate a value in the given set at this index. Read more
Source§

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>,

Source§

type Output = UniChunked<<StaticRange<<N as Mul<M>>::Output> as IsolateIndex<S>>::Output, U<M>>

Source§

unsafe fn isolate_unchecked(self, set: UniChunked<S, U<M>>) -> Self::Output

Attempts to isolate a value in the given set at this index. Read more
Source§

fn try_isolate(self, set: UniChunked<S, U<M>>) -> Option<Self::Output>

Attempts to isolate a value in the given set at this index. Read more
Source§

impl<N: PartialEq> PartialEq for StaticRange<N>

Source§

fn eq(&self, other: &StaticRange<N>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<N: Unsigned> Set for StaticRange<N>

Source§

type Elem = usize

Owned element of the set.
Source§

type Atom = usize

The most basic element contained by this collection. If this collection contains other collections, this type should be different than Elem.
Source§

fn len(&self) -> usize

Source§

fn is_empty(&self) -> bool

Source§

impl<N: Copy> Copy for StaticRange<N>

Source§

impl<N> StructuralPartialEq for StaticRange<N>

Auto Trait Implementations§

§

impl<N> Freeze for StaticRange<N>

§

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§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<'a, S, I> Get<'a, I> for S
where I: GetIndex<'a, S>,

Source§

type Output = <I as GetIndex<'a, S>>::Output

Source§

fn get(&self, idx: I) -> Option<<I as GetIndex<'a, S>>::Output>

Source§

fn at(&self, idx: I) -> Self::Output

Return a value at the given index. This is provided as the checked version of get that will panic if the equivalent get call is None, which typically means that the given index is out of bounds. Read more
Source§

unsafe fn at_unchecked(&self, idx: I) -> Self::Output

Return a value at the given index. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<S, I> Isolate<I> for S
where I: IsolateIndex<S>,

Source§

type Output = <I as IsolateIndex<S>>::Output

Source§

unsafe fn isolate_unchecked(self, idx: I) -> <S as Isolate<I>>::Output

Unchecked version of isolate. Read more
Source§

fn try_isolate(self, idx: I) -> Option<<S as Isolate<I>>::Output>

Source§

fn isolate(self, idx: I) -> Self::Output
where Self: Sized,

Return a value at the given index. This is provided as the checked version of try_isolate that will panic if the equivalent try_isolate call is None, which typically means that the given index is out of bounds. Read more
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T, N> PushArrayToVec<N> for T
where T: Clone, N: Array<T>,

Source§

fn push_to_vec(element: <N as Array<T>>::Array, set: &mut Vec<T>)

This method tells this type how it can be pushed to a Vec as an array.
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.