[−][src]Struct typed_generational_arena::NonZeroIndex
An arena index which is always nonzero. Useful for Option
Trait Implementations
impl<T> ArenaIndex for NonZeroIndex<T> where
T: NonZeroAble + FromPrimitive,
NonZeroIndex<T>: Copy,
<<T as NonZeroAble>::NonZero as NonZero>::Primitive: ToPrimitive,
[src]
T: NonZeroAble + FromPrimitive,
NonZeroIndex<T>: Copy,
<<T as NonZeroAble>::NonZero as NonZero>::Primitive: ToPrimitive,
impl<T: Debug + NonZeroAble> Debug for NonZeroIndex<T> where
T::NonZero: Debug,
[src]
T::NonZero: Debug,
impl<T: PartialEq + NonZeroAble> PartialEq<NonZeroIndex<T>> for NonZeroIndex<T> where
T::NonZero: PartialEq,
[src]
T::NonZero: PartialEq,
fn eq(&self, other: &NonZeroIndex<T>) -> bool
[src]
fn ne(&self, other: &NonZeroIndex<T>) -> bool
[src]
impl<T: Eq + NonZeroAble> Eq for NonZeroIndex<T> where
T::NonZero: Eq,
[src]
T::NonZero: Eq,
impl<T: Ord + NonZeroAble> Ord for NonZeroIndex<T> where
T::NonZero: Ord,
[src]
T::NonZero: Ord,
fn cmp(&self, other: &NonZeroIndex<T>) -> Ordering
[src]
fn max(self, other: Self) -> Self
1.21.0[src]
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
Compares and returns the minimum of two values. Read more
fn clamp(self, min: Self, max: Self) -> Self
[src]
🔬 This is a nightly-only experimental API. (
clamp
)Restrict a value to a certain interval. Read more
impl<T: PartialOrd + NonZeroAble> PartialOrd<NonZeroIndex<T>> for NonZeroIndex<T> where
T::NonZero: PartialOrd,
[src]
T::NonZero: PartialOrd,
fn partial_cmp(&self, other: &NonZeroIndex<T>) -> Option<Ordering>
[src]
fn lt(&self, other: &NonZeroIndex<T>) -> bool
[src]
fn le(&self, other: &NonZeroIndex<T>) -> bool
[src]
fn gt(&self, other: &NonZeroIndex<T>) -> bool
[src]
fn ge(&self, other: &NonZeroIndex<T>) -> bool
[src]
impl<T: Hash + NonZeroAble> Hash for NonZeroIndex<T> where
T::NonZero: Hash,
[src]
T::NonZero: Hash,
fn hash<__HT: Hasher>(&self, state: &mut __HT)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl<T: Copy + NonZeroAble> Copy for NonZeroIndex<T> where
T::NonZero: Copy,
[src]
T::NonZero: Copy,
impl<T: Clone + NonZeroAble> Clone for NonZeroIndex<T> where
T::NonZero: Clone,
[src]
T::NonZero: Clone,
fn clone(&self) -> NonZeroIndex<T>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl<T> Unpin for NonZeroIndex<T> where
<T as NonZeroAble>::NonZero: Unpin,
<T as NonZeroAble>::NonZero: Unpin,
impl<T> Send for NonZeroIndex<T> where
<T as NonZeroAble>::NonZero: Send,
<T as NonZeroAble>::NonZero: Send,
impl<T> Sync for NonZeroIndex<T> where
<T as NonZeroAble>::NonZero: Sync,
<T as NonZeroAble>::NonZero: Sync,
impl<T> UnwindSafe for NonZeroIndex<T> where
<T as NonZeroAble>::NonZero: UnwindSafe,
<T as NonZeroAble>::NonZero: UnwindSafe,
impl<T> RefUnwindSafe for NonZeroIndex<T> where
<T as NonZeroAble>::NonZero: RefUnwindSafe,
<T as NonZeroAble>::NonZero: RefUnwindSafe,
Blanket Implementations
impl<T> ArenaIndex for T where
T: Copy + ToPrimitive + FromPrimitive,
[src]
T: Copy + ToPrimitive + FromPrimitive,
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> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[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> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,