pub struct Index<T, Int = u32> { /* private fields */ }
Expand description
An identifier for an arbitrary type T
.
This is a wrapper around usize
which is bound to a type T
.
Implementations§
Trait Implementations§
Source§impl<T, Int: PartialOrd + Ord> Ord for Index<T, Int>
impl<T, Int: PartialOrd + Ord> Ord for Index<T, Int>
Source§impl<T, Int: PartialOrd> PartialOrd for Index<T, Int>
impl<T, Int: PartialOrd> PartialOrd for Index<T, Int>
impl<T, Int: Copy> Copy for Index<T, Int>
impl<T, Int: PartialEq> Eq for Index<T, Int>
Auto Trait Implementations§
impl<T, Int> Freeze for Index<T, Int>where
Int: Freeze,
impl<T, Int> RefUnwindSafe for Index<T, Int>where
Int: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, Int> Send for Index<T, Int>
impl<T, Int> Sync for Index<T, Int>
impl<T, Int> Unpin for Index<T, Int>
impl<T, Int> UnwindSafe for Index<T, Int>where
Int: UnwindSafe,
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more