pub struct ValueIndex(pub u32);
Expand description
A type safe wrapper over an index into the ValueVec
.
Tuple Fields§
§0: u32
Implementations§
Source§impl ValueIndex
impl ValueIndex
Sourcepub const INVALID: ValueIndex
pub const INVALID: ValueIndex
The value index that is not considered to be valid.
Trait Implementations§
Source§impl Clone for ValueIndex
impl Clone for ValueIndex
Source§fn clone(&self) -> ValueIndex
fn clone(&self) -> ValueIndex
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ValueIndex
impl Debug for ValueIndex
Source§impl Default for ValueIndex
The most sensible default for a value index is invalid.
impl Default for ValueIndex
The most sensible default for a value index is invalid.
Source§impl DeserializeBytes for ValueIndex
impl DeserializeBytes for ValueIndex
fn deserialize(read_buf: impl Buf) -> Result<Self, SerializationError>where
Self: Sized,
Source§impl Hash for ValueIndex
impl Hash for ValueIndex
Source§impl Index<ValueIndex> for ValueVec
impl Index<ValueIndex> for ValueVec
Source§impl IndexMut<ValueIndex> for ValueVec
impl IndexMut<ValueIndex> for ValueVec
Source§impl Ord for ValueIndex
impl Ord for ValueIndex
Source§fn cmp(&self, other: &ValueIndex) -> Ordering
fn cmp(&self, other: &ValueIndex) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ValueIndex
impl PartialEq for ValueIndex
Source§impl PartialOrd for ValueIndex
impl PartialOrd for ValueIndex
Source§impl SerializeBytes for ValueIndex
impl SerializeBytes for ValueIndex
impl Copy for ValueIndex
impl Eq for ValueIndex
impl StructuralPartialEq for ValueIndex
Auto Trait Implementations§
impl Freeze for ValueIndex
impl RefUnwindSafe for ValueIndex
impl Send for ValueIndex
impl Sync for ValueIndex
impl Unpin for ValueIndex
impl UnwindSafe for ValueIndex
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