struct PaletteIndexTable<'a, V: ToGlobalId> {
slots: &'a mut [u16],
palette: &'a [(V, u16)],
}Expand description
The thread’s index table filled with one palette, reset to empty when dropped (including on unwind) so the next palette starts from a clean table.
Fields§
§slots: &'a mut [u16]§palette: &'a [(V, u16)]Implementations§
Trait Implementations§
Source§impl<V: ToGlobalId> Drop for PaletteIndexTable<'_, V>
impl<V: ToGlobalId> Drop for PaletteIndexTable<'_, V>
Auto Trait Implementations§
impl<'a, V> !UnwindSafe for PaletteIndexTable<'a, V>
impl<'a, V> Freeze for PaletteIndexTable<'a, V>
impl<'a, V> RefUnwindSafe for PaletteIndexTable<'a, V>where
&'a [(V, u16)]: RefUnwindSafe,
impl<'a, V> Send for PaletteIndexTable<'a, V>
impl<'a, V> Sync for PaletteIndexTable<'a, V>
impl<'a, V> Unpin for PaletteIndexTable<'a, V>
impl<'a, V> UnsafeUnpin for PaletteIndexTable<'a, V>where
&'a [(V, u16)]: UnsafeUnpin,
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<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
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 moreWraps this value in an
Arc<SyncMutex<>>