pub struct OrderedIdSlice<'a> { /* private fields */ }Expand description
An unsized slice of ConstId structs that is guaranteed to be in sorted order.
Implementations§
Source§impl<'a> OrderedIdSlice<'a>
impl<'a> OrderedIdSlice<'a>
Sourcepub const fn from_arr<const SIZE: usize>(arr: &'a OrderedIdArray<SIZE>) -> Self
pub const fn from_arr<const SIZE: usize>(arr: &'a OrderedIdArray<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 OrderedIdSlice<'a>
impl<'a> Clone for OrderedIdSlice<'a>
Source§fn clone(&self) -> OrderedIdSlice<'a>
fn clone(&self) -> OrderedIdSlice<'a>
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<'a> Debug for OrderedIdSlice<'a>
impl<'a> Debug for OrderedIdSlice<'a>
Source§impl<'a> Hash for OrderedIdSlice<'a>
impl<'a> Hash for OrderedIdSlice<'a>
Source§impl<'a> Ord for OrderedIdSlice<'a>
impl<'a> Ord for OrderedIdSlice<'a>
Source§fn cmp(&self, other: &OrderedIdSlice<'a>) -> Ordering
fn cmp(&self, other: &OrderedIdSlice<'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 OrderedIdSlice<'a>
impl<'a> PartialEq for OrderedIdSlice<'a>
Source§impl<'a> PartialOrd for OrderedIdSlice<'a>
impl<'a> PartialOrd for OrderedIdSlice<'a>
impl<'a> Copy for OrderedIdSlice<'a>
impl<'a> Eq for OrderedIdSlice<'a>
impl<'a> StructuralPartialEq for OrderedIdSlice<'a>
Auto Trait Implementations§
impl<'a> Freeze for OrderedIdSlice<'a>
impl<'a> RefUnwindSafe for OrderedIdSlice<'a>
impl<'a> Send for OrderedIdSlice<'a>
impl<'a> Sync for OrderedIdSlice<'a>
impl<'a> Unpin for OrderedIdSlice<'a>
impl<'a> UnwindSafe for OrderedIdSlice<'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