Enum HueDirection
#[non_exhaustive]#[repr(u8)]pub enum HueDirection {
Shorter = 0,
Longer = 1,
Increasing = 2,
Decreasing = 3,
}Expand description
The hue direction for interpolation.
This type corresponds to hue-interpolation-method in the CSS Color
4 spec.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Shorter = 0
Hue angles take the shorter of the two arcs between starting and ending values.
Longer = 1
Hue angles take the longer of the two arcs between starting and ending values.
Increasing = 2
Hue angles increase as they are interpolated.
Decreasing = 3
Hue angles decrease as they are interpolated.
Trait Implementations§
§impl Clone for HueDirection
impl Clone for HueDirection
§fn clone(&self) -> HueDirection
fn clone(&self) -> HueDirection
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for HueDirection
impl Debug for HueDirection
§impl Default for HueDirection
impl Default for HueDirection
§fn default() -> HueDirection
fn default() -> HueDirection
Returns the “default value” for a type. Read more
§impl PartialEq for HueDirection
impl PartialEq for HueDirection
impl Copy for HueDirection
impl StructuralPartialEq for HueDirection
Auto Trait Implementations§
impl Freeze for HueDirection
impl RefUnwindSafe for HueDirection
impl Send for HueDirection
impl Sync for HueDirection
impl Unpin for HueDirection
impl UnwindSafe for HueDirection
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> 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 moreSource§impl<T> StaticAnim for Twhere
T: StaticAnimRequirement + 'static,
impl<T> StaticAnim for Twhere
T: StaticAnimRequirement + 'static,
Source§fn show(&self) -> AnimationCell<T>
fn show(&self) -> AnimationCell<T>
Show the item
Source§fn hide(&self) -> AnimationCell<T>
fn hide(&self) -> AnimationCell<T>
Hide the item