Enum CoroutineState Copy item path Source pub enum CoroutineState<Y, R> {
Yielded(Y),
Complete(R),
}🔬 This is a nightly-only experimental API. (coroutine_trait #43122 ) Expand description The result of a coroutine resumption.
This enum is returned from the Coroutine::resume method and indicates the
possible return values of a coroutine. Currently this corresponds to either
a suspension point (Yielded) or a termination point (Complete).
🔬 This is a nightly-only experimental API. (coroutine_trait #43122 ) The coroutine suspended with a value.
This state indicates that a coroutine has been suspended, and typically
corresponds to a yield statement. The value provided in this variant
corresponds to the expression passed to yield and allows coroutines to
provide a value each time they yield.
🔬 This is a nightly-only experimental API. (coroutine_trait #43122 ) The coroutine completed with a return value.
This state indicates that a coroutine has finished execution with the
provided value. Once a coroutine has returned Complete it is
considered a programmer error to call resume again.
This item is validated for IEC 61508 (SIL 2) and ISO 26262 (ASIL B) .
This item is validated for IEC 61508 (SIL 2) and ISO 26262 (ASIL B) .
Performs copy-assignment from
source.
Read more This item is validated for IEC 61508 (SIL 2) and ISO 26262 (ASIL B) .
Formats the value using the given formatter.
Read more This item is validated for IEC 61508 (SIL 2) and ISO 26262 (ASIL B) .
This item is validated for IEC 61508 (SIL 2) and ISO 26262 (ASIL B) .
This item is validated for IEC 61508 (SIL 2) and ISO 26262 (ASIL B) .
This item is validated for IEC 61508 (SIL 2) and ISO 26262 (ASIL B) .
Compares and returns the maximum of two values.
Read more This item is validated for IEC 61508 (SIL 2) and ISO 26262 (ASIL B) .
Compares and returns the minimum of two values.
Read more This item is validated for IEC 61508 (SIL 2) and ISO 26262 (ASIL B) .
Restrict a value to a certain interval.
Read more 🔬 This is a nightly-only experimental API. (clamp_to #147781 ) Restrict a value to a certain range.
Read more This item is validated for IEC 61508 (SIL 2) and ISO 26262 (ASIL B) .
This item is validated for IEC 61508 (SIL 2) and ISO 26262 (ASIL B) .
This item is validated for IEC 61508 (SIL 2) and ISO 26262 (ASIL B) .
This method returns an ordering between
self and
other values if one exists.
Read more This item is validated for IEC 61508 (SIL 2) and ISO 26262 (ASIL B) .
Tests less than (for
self and
other) and is used by the
< operator.
Read more This item is validated for IEC 61508 (SIL 2) and ISO 26262 (ASIL B) .
Tests less than or equal to (for
self and
other) and is used by the
<= operator.
Read more This item is validated for IEC 61508 (SIL 2) and ISO 26262 (ASIL B) .
Tests greater than (for
self and
other) and is used by the
>
operator.
Read more This item is validated for IEC 61508 (SIL 2) and ISO 26262 (ASIL B) .
Tests greater than or equal to (for
self and
other) and is used by
the
>= operator.
Read more This item is validated for IEC 61508 (SIL 2) and ISO 26262 (ASIL B) .
This item is validated for IEC 61508 (SIL 2) and ISO 26262 (ASIL B) .
Immutably borrows from an owned value.
Read more This item is validated for IEC 61508 (SIL 2) and ISO 26262 (ASIL B) .
Mutably borrows from an owned value.
Read more 🔬 This is a nightly-only experimental API. (clone_to_uninit #126799 ) This item is validated for IEC 61508 (SIL 2) and ISO 26262 (ASIL B) .
Performs copy-assignment from
self to
dest.
Read more This item is validated for IEC 61508 (SIL 2) and ISO 26262 (ASIL B) .
Returns the argument unchanged.
This item is validated for IEC 61508 (SIL 2) and ISO 26262 (ASIL B) .
Calls U::from(self).
That is, this conversion is whatever the implementation of
From <T> for U chooses to do.
The type returned in the event of a conversion error.
This item is validated for IEC 61508 (SIL 2) and ISO 26262 (ASIL B) .
Performs the conversion.
The type returned in the event of a conversion error.
This item is validated for IEC 61508 (SIL 2) and ISO 26262 (ASIL B) .
Performs the conversion.