pub enum RangeIndexMode {
Ref,
RefMut,
Deref,
Get,
GetMut,
}Variants§
Ref
&xs[a..b]
RefMut
&mut xs[a..b]
Deref
xs[a..b] used as the receiver of a known &self read-only method.
Get
xs.get(a..b)
GetMut
xs.get_mut(a..b)
Trait Implementations§
Source§impl Clone for RangeIndexMode
impl Clone for RangeIndexMode
impl Copy for RangeIndexMode
Source§impl Debug for RangeIndexMode
impl Debug for RangeIndexMode
impl Eq for RangeIndexMode
Source§impl PartialEq for RangeIndexMode
impl PartialEq for RangeIndexMode
impl StructuralPartialEq for RangeIndexMode
Auto Trait Implementations§
impl Forget for RangeIndexMode
impl Freeze for RangeIndexMode
impl Move for RangeIndexMode
impl RefUnwindSafe for RangeIndexMode
impl Send for RangeIndexMode
impl Sync for RangeIndexMode
impl Unpin for RangeIndexMode
impl UnsafeUnpin for RangeIndexMode
impl UnwindSafe for RangeIndexMode
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> 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.