Enum n18ui::State[][src]

pub enum State {
    Start(Start),
    Default(Default),
    EditTokens(EditTokens),
    ReplaceTile(ReplaceTile),
    FindRoutesCompany(SelectCompany),
    FindRoutesTrains(SelectTrains),
    FindRoutesSearch(Search),
    FindRoutesFound(Found),
}
Expand description

The different user interface states.

Variants

Start(Start)

Tuple Fields of Start

0: Start
Default(Default)

Tuple Fields of Default

0: Default
EditTokens(EditTokens)

Tuple Fields of EditTokens

0: EditTokens
ReplaceTile(ReplaceTile)

Tuple Fields of ReplaceTile

0: ReplaceTile
FindRoutesCompany(SelectCompany)

Tuple Fields of FindRoutesCompany

0: SelectCompany
FindRoutesTrains(SelectTrains)

Tuple Fields of FindRoutesTrains

0: SelectTrains
FindRoutesSearch(Search)

Tuple Fields of FindRoutesSearch

0: Search
FindRoutesFound(Found)

Tuple Fields of FindRoutesFound

0: Found

Implementations

Trait Implementations

Performs the conversion.

Note the 'static lifetime in the return type, which is necessary for this to compile. See this thread on the Rust forum, and how static lifetimes apply to trait bounds:

As a trait bound, it means the type does not contain any non-static references. E.g., the receiver can hold on to the type for as long as they want and it will never become invalid until they drop it.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Returns the default UI state, with the provided active map hex.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.