pub struct SortedSlice<Item: Ord, S: AsRef<[Item]> + ?Sized> {
pub marker: PhantomData<Item>,
pub slice: S,
}Expand description
A slice of NodeId whose values are in ascending order
§Safety
Unsafe code should not rely on this to be sorted, as safe code can build arbitrary instances
Fields§
§marker: PhantomData<Item>§slice: SImplementations§
Trait Implementations§
impl<Item: Eq + Ord, S: Eq + AsRef<[Item]> + ?Sized> Eq for SortedSlice<Item, S>
Source§impl<'a, Item: Ord, S: AsRef<[Item]>> From<&'a SortedSlice<Item, S>> for SortedSlice<Item, &'a [Item]>
impl<'a, Item: Ord, S: AsRef<[Item]>> From<&'a SortedSlice<Item, S>> for SortedSlice<Item, &'a [Item]>
Source§fn from(v: &'a SortedSlice<Item, S>) -> Self
fn from(v: &'a SortedSlice<Item, S>) -> Self
Converts to this type from the input type.
Source§impl<'a, Item: Ord + Copy> IntoIterator for SortedSlice<Item, &'a [Item]>
impl<'a, Item: Ord + Copy> IntoIterator for SortedSlice<Item, &'a [Item]>
Source§impl<Item: PartialEq + Ord, S: PartialEq + AsRef<[Item]> + ?Sized> PartialEq for SortedSlice<Item, S>
impl<Item: PartialEq + Ord, S: PartialEq + AsRef<[Item]> + ?Sized> PartialEq for SortedSlice<Item, S>
Source§fn eq(&self, other: &SortedSlice<Item, S>) -> bool
fn eq(&self, other: &SortedSlice<Item, S>) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl<S: AsRef<[NodeId]> + ?Sized> ReadNodeSet for SortedSlice<NodeId, S>
impl<S: AsRef<[NodeId]> + ?Sized> ReadNodeSet for SortedSlice<NodeId, S>
impl<Item: PartialEq + Ord, S: PartialEq + AsRef<[Item]> + ?Sized> StructuralPartialEq for SortedSlice<Item, S>
Auto Trait Implementations§
impl<Item, S> Freeze for SortedSlice<Item, S>
impl<Item, S> RefUnwindSafe for SortedSlice<Item, S>
impl<Item, S> Send for SortedSlice<Item, S>
impl<Item, S> Sync for SortedSlice<Item, S>
impl<Item, S> Unpin for SortedSlice<Item, S>
impl<Item, S> UnsafeUnpin for SortedSlice<Item, S>where
S: UnsafeUnpin + ?Sized,
impl<Item, S> UnwindSafe for SortedSlice<Item, S>
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T, U> CastableInto<U> for Twhere
U: CastableFrom<T>,
impl<T, U> CastableInto<U> for Twhere
U: CastableFrom<T>,
Source§impl<T> DowncastableFrom<T> for T
impl<T> DowncastableFrom<T> for T
Source§fn downcast_from(value: T) -> T
fn downcast_from(value: T) -> T
Truncate the current UnsignedInt to a possibly smaller size
Source§impl<T, U> DowncastableInto<U> for Twhere
U: DowncastableFrom<T>,
impl<T, U> DowncastableInto<U> for Twhere
U: DowncastableFrom<T>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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 moreSource§impl<I> IntoIteratorExt<I> for Iwhere
I: IntoIterator,
impl<I> IntoIteratorExt<I> for Iwhere
I: IntoIterator,
Source§fn into_into_lender(self) -> FromIntoIter<I>
fn into_into_lender(self) -> FromIntoIter<I>
Source§impl<I> IntoIteratorExt<I> for Iwhere
I: IntoIterator,
impl<I> IntoIteratorExt<I> for Iwhere
I: IntoIterator,
Source§fn into_into_lender(self) -> FromIntoIter<I>
fn into_into_lender(self) -> FromIntoIter<I>
Source§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<T> UpcastableFrom<T> for T
impl<T> UpcastableFrom<T> for T
Source§fn upcast_from(value: T) -> T
fn upcast_from(value: T) -> T
Extend the current UnsignedInt to a possibly bigger size.