pub enum ColorSource<'a, B: Backend, const N: usize> {
Custom(&'a [(String, f32)]),
Raycast(&'a RayCastResult<B, N>),
Config,
}Expand description
Color source for trajectory animations
Variants§
Custom(&'a [(String, f32)])
Custom color/opacity pairs
Raycast(&'a RayCastResult<B, N>)
Raycast result for hit/miss coloring
Config
Use configuration colors uniformly
Trait Implementations§
Auto Trait Implementations§
impl<'a, B, const N: usize> Freeze for ColorSource<'a, B, N>
impl<'a, B, const N: usize> RefUnwindSafe for ColorSource<'a, B, N>where
<B as Backend>::FloatTensorPrimitive: RefUnwindSafe,
<B as Backend>::QuantizedTensorPrimitive: RefUnwindSafe,
impl<'a, B, const N: usize> Send for ColorSource<'a, B, N>
impl<'a, B, const N: usize> Sync for ColorSource<'a, B, N>
impl<'a, B, const N: usize> Unpin for ColorSource<'a, B, N>
impl<'a, B, const N: usize> UnwindSafe for ColorSource<'a, B, N>where
<B as Backend>::FloatTensorPrimitive: RefUnwindSafe,
<B as Backend>::QuantizedTensorPrimitive: RefUnwindSafe,
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<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 more