pub struct HeterogeneousPalette<V: Hash + Eq + Copy, const DIM: usize> {
pub(crate) cube: Box<[[[V; DIM]; DIM]; DIM]>,
pub(crate) palette: Vec<(V, u16)>,
}Expand description
A heterogeneous palette container.
Fields§
§cube: Box<[[[V; DIM]; DIM]; DIM]>§palette: Vec<(V, u16)>Implementations§
Trait Implementations§
Source§impl<V: Clone + Hash + Eq + Copy, const DIM: usize> Clone for HeterogeneousPalette<V, DIM>
impl<V: Clone + Hash + Eq + Copy, const DIM: usize> Clone for HeterogeneousPalette<V, DIM>
Source§fn clone(&self) -> HeterogeneousPalette<V, DIM>
fn clone(&self) -> HeterogeneousPalette<V, DIM>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<V, const DIM: usize> Freeze for HeterogeneousPalette<V, DIM>
impl<V, const DIM: usize> RefUnwindSafe for HeterogeneousPalette<V, DIM>where
V: RefUnwindSafe,
impl<V, const DIM: usize> Send for HeterogeneousPalette<V, DIM>where
V: Send,
impl<V, const DIM: usize> Sync for HeterogeneousPalette<V, DIM>where
V: Sync,
impl<V, const DIM: usize> Unpin for HeterogeneousPalette<V, DIM>where
V: Unpin,
impl<V, const DIM: usize> UnsafeUnpin for HeterogeneousPalette<V, DIM>
impl<V, const DIM: usize> UnwindSafe for HeterogeneousPalette<V, DIM>where
V: 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,
§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<>>