Struct const_identify::UniqueIdSlice
source · pub struct UniqueIdSlice<'a> { /* private fields */ }Expand description
An unsized slice of ConstId structs that are guaranteed to be unique and in sorted order.
Implementations§
source§impl<'a> UniqueIdSlice<'a>
impl<'a> UniqueIdSlice<'a>
sourcepub const fn from_arr<const SIZE: usize>(arr: &'a UniqueIdArray<SIZE>) -> Self
pub const fn from_arr<const SIZE: usize>(arr: &'a UniqueIdArray<SIZE>) -> Self
Creates a new slice out of the data in arr.
sourcepub const fn as_raw_slice(&self) -> &[ConstId]
pub const fn as_raw_slice(&self) -> &[ConstId]
Returns the underlying slice.
sourcepub const fn const_cmp_ordered<const SIZE2: usize>(
&self,
other: &OrderedIdArray<SIZE2>
) -> Ordering
pub const fn const_cmp_ordered<const SIZE2: usize>( &self, other: &OrderedIdArray<SIZE2> ) -> Ordering
Returns the ordering between self and other
sourcepub const fn const_cmp_ordered_slice(
&self,
other: &OrderedIdSlice<'_>
) -> Ordering
pub const fn const_cmp_ordered_slice( &self, other: &OrderedIdSlice<'_> ) -> Ordering
Returns the ordering between self and other
sourcepub const fn const_cmp_unique<const SIZE2: usize>(
&self,
other: &UniqueIdArray<SIZE2>
) -> Ordering
pub const fn const_cmp_unique<const SIZE2: usize>( &self, other: &UniqueIdArray<SIZE2> ) -> Ordering
Returns the ordering between self and other
sourcepub const fn const_cmp_unique_slice(
&self,
other: &UniqueIdSlice<'_>
) -> Ordering
pub const fn const_cmp_unique_slice( &self, other: &UniqueIdSlice<'_> ) -> Ordering
Returns the ordering between self and other
Trait Implementations§
source§impl<'a> Clone for UniqueIdSlice<'a>
impl<'a> Clone for UniqueIdSlice<'a>
source§fn clone(&self) -> UniqueIdSlice<'a>
fn clone(&self) -> UniqueIdSlice<'a>
Returns a copy 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<'a> Debug for UniqueIdSlice<'a>
impl<'a> Debug for UniqueIdSlice<'a>
source§impl<'a> Hash for UniqueIdSlice<'a>
impl<'a> Hash for UniqueIdSlice<'a>
source§impl<'a> Ord for UniqueIdSlice<'a>
impl<'a> Ord for UniqueIdSlice<'a>
source§fn cmp(&self, other: &UniqueIdSlice<'a>) -> Ordering
fn cmp(&self, other: &UniqueIdSlice<'a>) -> 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<'a> PartialEq for UniqueIdSlice<'a>
impl<'a> PartialEq for UniqueIdSlice<'a>
source§fn eq(&self, other: &UniqueIdSlice<'a>) -> bool
fn eq(&self, other: &UniqueIdSlice<'a>) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl<'a> PartialOrd for UniqueIdSlice<'a>
impl<'a> PartialOrd for UniqueIdSlice<'a>
source§fn partial_cmp(&self, other: &UniqueIdSlice<'a>) -> Option<Ordering>
fn partial_cmp(&self, other: &UniqueIdSlice<'a>) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreimpl<'a> Copy for UniqueIdSlice<'a>
impl<'a> Eq for UniqueIdSlice<'a>
impl<'a> StructuralEq for UniqueIdSlice<'a>
impl<'a> StructuralPartialEq for UniqueIdSlice<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for UniqueIdSlice<'a>
impl<'a> Send for UniqueIdSlice<'a>
impl<'a> Sync for UniqueIdSlice<'a>
impl<'a> Unpin for UniqueIdSlice<'a>
impl<'a> UnwindSafe for UniqueIdSlice<'a>
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