pub struct StaticIndex<const INDEX: usize>;
Expand description
A single-element index that exists entirely at compile time.
Trait Implementations§
Source§impl<I, S: AsRef<[I]>, const INDEX: usize> Index<StaticIndex<INDEX>> for SliceWrapper<'_, I, S>
impl<I, S: AsRef<[I]>, const INDEX: usize> Index<StaticIndex<INDEX>> for SliceWrapper<'_, I, S>
Auto Trait Implementations§
impl<const INDEX: usize> Freeze for StaticIndex<INDEX>
impl<const INDEX: usize> RefUnwindSafe for StaticIndex<INDEX>
impl<const INDEX: usize> Send for StaticIndex<INDEX>
impl<const INDEX: usize> Sync for StaticIndex<INDEX>
impl<const INDEX: usize> Unpin for StaticIndex<INDEX>
impl<const INDEX: usize> UnwindSafe for StaticIndex<INDEX>
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