[−][src]Struct typed_generational_arena::NonzeroWrapGeneration
A wrapping generation counter which is always nonzero.
Useful for size optimizations on Option
Trait Implementations
impl<T> FixedGenerationalIndex for NonzeroWrapGeneration<T> where
T: NonZeroAble + One + Zero + Copy + Eq + WrappingAdd + From<<<T as NonZeroAble>::NonZero as NonZero>::Primitive>,
T::NonZero: PartialOrd + Eq + Copy,
[src]
T: NonZeroAble + One + Zero + Copy + Eq + WrappingAdd + From<<<T as NonZeroAble>::NonZero as NonZero>::Primitive>,
T::NonZero: PartialOrd + Eq + Copy,
fn first_generation() -> Self
[src]
fn generation_lt(&self, other: &Self) -> bool
[src]
impl<T> GenerationalIndex for NonzeroWrapGeneration<T> where
T: NonZeroAble + One + Zero + Copy + Eq + WrappingAdd + From<<<T as NonZeroAble>::NonZero as NonZero>::Primitive>,
T::NonZero: PartialOrd + Eq + Copy,
[src]
T: NonZeroAble + One + Zero + Copy + Eq + WrappingAdd + From<<<T as NonZeroAble>::NonZero as NonZero>::Primitive>,
T::NonZero: PartialOrd + Eq + Copy,
fn increment_generation(&mut self)
[src]
impl<T: Debug + NonZeroAble> Debug for NonzeroWrapGeneration<T> where
T::NonZero: Debug,
[src]
T::NonZero: Debug,
impl<T: PartialEq + NonZeroAble> PartialEq<NonzeroWrapGeneration<T>> for NonzeroWrapGeneration<T> where
T::NonZero: PartialEq,
[src]
T::NonZero: PartialEq,
fn eq(&self, other: &NonzeroWrapGeneration<T>) -> bool
[src]
fn ne(&self, other: &NonzeroWrapGeneration<T>) -> bool
[src]
impl<T: Eq + NonZeroAble> Eq for NonzeroWrapGeneration<T> where
T::NonZero: Eq,
[src]
T::NonZero: Eq,
impl<T: Ord + NonZeroAble> Ord for NonzeroWrapGeneration<T> where
T::NonZero: Ord,
[src]
T::NonZero: Ord,
fn cmp(&self, other: &NonzeroWrapGeneration<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<NonzeroWrapGeneration<T>> for NonzeroWrapGeneration<T> where
T::NonZero: PartialOrd,
[src]
T::NonZero: PartialOrd,
fn partial_cmp(&self, other: &NonzeroWrapGeneration<T>) -> Option<Ordering>
[src]
fn lt(&self, other: &NonzeroWrapGeneration<T>) -> bool
[src]
fn le(&self, other: &NonzeroWrapGeneration<T>) -> bool
[src]
fn gt(&self, other: &NonzeroWrapGeneration<T>) -> bool
[src]
fn ge(&self, other: &NonzeroWrapGeneration<T>) -> bool
[src]
impl<T: Copy + NonZeroAble> Copy for NonzeroWrapGeneration<T> where
T::NonZero: Copy,
[src]
T::NonZero: Copy,
impl<T: Clone + NonZeroAble> Clone for NonzeroWrapGeneration<T> where
T::NonZero: Clone,
[src]
T::NonZero: Clone,
fn clone(&self) -> NonzeroWrapGeneration<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 NonzeroWrapGeneration<T> where
<T as NonZeroAble>::NonZero: Unpin,
<T as NonZeroAble>::NonZero: Unpin,
impl<T> Sync for NonzeroWrapGeneration<T> where
<T as NonZeroAble>::NonZero: Sync,
<T as NonZeroAble>::NonZero: Sync,
impl<T> Send for NonzeroWrapGeneration<T> where
<T as NonZeroAble>::NonZero: Send,
<T as NonZeroAble>::NonZero: Send,
impl<T> RefUnwindSafe for NonzeroWrapGeneration<T> where
<T as NonZeroAble>::NonZero: RefUnwindSafe,
<T as NonZeroAble>::NonZero: RefUnwindSafe,
impl<T> UnwindSafe for NonzeroWrapGeneration<T> where
<T as NonZeroAble>::NonZero: UnwindSafe,
<T as NonZeroAble>::NonZero: UnwindSafe,
Blanket Implementations
impl<T> FixedGenerationalIndex for T where
T: Copy + AddAssign<T> + Eq + PartialOrd<T> + Default + One,
[src]
T: Copy + AddAssign<T> + Eq + PartialOrd<T> + Default + One,
fn first_generation() -> T
[src]
fn generation_lt(&Self, &T) -> bool
[src]
impl<T> GenerationalIndex for T where
T: Copy + AddAssign<T> + Eq + PartialOrd<T> + Default + One,
[src]
T: Copy + AddAssign<T> + Eq + PartialOrd<T> + Default + One,
fn increment_generation(&mut Self)
[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> 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,