[][src]Struct livesplit_core::component::splits::SplitState

pub struct SplitState {
    pub name: String,
    pub columns: Vec<ColumnState>,
    pub is_current_split: bool,
    pub index: usize,
}

The state object that describes a single segment's information to visualize.

Fields

name: String

The name of the segment.

columns: Vec<ColumnState>

The state of each column from right to left. The amount of columns is not guaranteed to be the same across different splits.

is_current_split: bool

Describes if this segment is the segment the active attempt is currently on.

index: usize

The index of the segment based on all the segments of the run. This may differ from the index of this SplitState in the State object, as there can be a scrolling window, showing only a subset of segments. Each index is guaranteed to be unique.

Trait Implementations

impl Debug for SplitState[src]

impl Serialize for SplitState[src]

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

Auto Trait Implementations

impl Send for SplitState

impl Sync for SplitState

Blanket Implementations

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

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

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.