pub struct RantSelector { /* private fields */ }
Expand description

Represents a Rant selector instance used by the resolver to select block branches.

Implementations

Creates a new selector.

Converts the instance into a handle.

The mode assigned to the selector.

The next index to be selected.

The number of block elements that this selector is initialized for.

A value of 0 indicates that the selector is uninitialized (as selecting over 0 branches is impossible).

Indicates the parity state of the selector. Some selectors use two alternating passes (such as mirror modes). The parity indicates which of these passes is currently active.

Indicates whether the selector is frozen.

Sets the frozen state of the selector.

Indicates whether the selector has been initialized with [Selector::init].

Initializes the selector state using the specified element count.

Returns the next branch index and advances the selector state.

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

Converts to this type from the input type.

Converts to a RantValue.

Attempts to convert to a RantValue.

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.