pub struct Slice<S> { /* private fields */ }
Expand description
A struct representing a slice of a range of values.
The lower and upper bounds should be meaningfully set on construction.
Implementations§
Trait Implementations§
Source§impl<'a, S> Index for &'a Slice<S>
impl<'a, S> Index for &'a Slice<S>
Source§impl<S: Index> Index for Slice<S>
impl<S: Index> Index for Slice<S>
Source§impl<S: IndexMut> IndexMut for Slice<S>
impl<S: IndexMut> IndexMut for Slice<S>
Source§impl<S: Index> Ord for Slice<S>
impl<S: Index> Ord for Slice<S>
Source§impl<S: Index> PartialOrd for Slice<S>where
S::Ref: PartialOrd,
impl<S: Index> PartialOrd for Slice<S>where
S::Ref: PartialOrd,
impl<S: Copy> Copy for Slice<S>
impl<S: Index> Eq for Slice<S>
Auto Trait Implementations§
impl<S> Freeze for Slice<S>where
S: Freeze,
impl<S> RefUnwindSafe for Slice<S>where
S: RefUnwindSafe,
impl<S> Send for Slice<S>where
S: Send,
impl<S> Sync for Slice<S>where
S: Sync,
impl<S> Unpin for Slice<S>where
S: Unpin,
impl<S> UnwindSafe for Slice<S>where
S: UnwindSafe,
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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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.