[][src]Enum livesplit_core::settings::SemanticColor

pub enum SemanticColor {
    Default,
    AheadGainingTime,
    AheadLosingTime,
    BehindLosingTime,
    BehindGainingTime,
    BestSegment,
    NotRunning,
    Paused,
    PersonalBest,
}

A Semantic Color describes a color by some meaningful event that is happening. This information can be visualized as a color, but can also be interpreted in other ways by the consumer of this API.

Variants

Default

There's no meaningful information for this color.

AheadGainingTime

The runner is ahead of the comparison and is gaining even more time.

AheadLosingTime

The runner is ahead of the comparison, but is losing time.

BehindLosingTime

The runner is behind the comparison and is losing even more time.

BehindGainingTime

The runner is behind the comparison, but is gaining back time.

BestSegment

The runner achieved a best segment.

NotRunning

There's no active attempt.

Paused

The timer is paused.

PersonalBest

The runner achieved a new Personal Best.

Methods

impl SemanticColor[src]

pub fn or(self, color: SemanticColor) -> SemanticColor[src]

Replaces a Semantic Color by the Semantic Color provided if it is the default one.

pub fn visualize(self, settings: &GeneralSettings) -> Color[src]

The General Settings store actual Color values for each of the different events. Using this method, you can use these to convert a Semantic Color to an actual Color.

Trait Implementations

impl Copy for SemanticColor[src]

impl PartialEq<SemanticColor> for SemanticColor[src]

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests for !=.

impl Eq for SemanticColor[src]

impl Clone for SemanticColor[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Default for SemanticColor[src]

impl Debug for SemanticColor[src]

impl Serialize for SemanticColor[src]

impl<'de> Deserialize<'de> for SemanticColor[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
    D: AdaptFrom<S, Swp, Dwp, T>,
    Dwp: WhitePoint,
    Swp: WhitePoint,
    T: Component + Float
[src]

fn adapt_into(self) -> D[src]

Convert the source color to the destination color using the bradford method by default Read more

impl<T> SetParameter for T

fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
    T: Parameter<Self>, 

Sets value as a parameter of self.

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]