#[repr(u8)]
pub enum SelectorMode {
Show 15 variants Random, One, Forward, ForwardClamp, ForwardMirror, Reverse, ReverseClamp, ReverseMirror, Deck, DeckLoop, DeckClamp, DeckMirror, Ping, Pong, NoDouble,
}
Expand description

Defines available branch selection modes for selectors.

Variants

Random

Selects a random element each time.

One

Selects the same, random element each time.

Forward

Selects each element in a wrapping sequence from left to right.

ForwardClamp

Selects each element from left to right, then repeats the right-most element.

ForwardMirror

Selects each element from left to right, then right to left, and repeats. Boundary elements are repeated.

Reverse

Selects each element in a wrapping reverse sequence from right to left.

ReverseClamp

Selects each element from right to left, then repeats the left-most element.

ReverseMirror

Selects each element from right to left, then left to right, and repeats. Boundary elements are repeated.

Deck

Selects each element once in a random sequence, then reshuffles.

DeckLoop

Selects each element once in a wrapping random sequence, without reshuffling.

DeckClamp

Selects each element once in a random sequence, repeating the final element.

DeckMirror

Selects each element once in a random sequence, then selects the same sequence backwards, then reshuffles and repeats. Mirror boundary elements are repeated.

Ping

Selects each element from left to right, switching directions each time a boundary element is reached. Boundary elements are not repeated.

Pong

Selects each element from right to left, switching directions each time a boundary element is reached. Boundary elements are not repeated.

NoDouble

Ensures that no one element index is selected twice in a row.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Convert from a RantValue.

Returns true if the type can be used to represent an optional Rant parameter in native functions; otherwise, false.

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. 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.