[−][src]Struct dialectic::types::Choose
Actively choose
between any of the protocols in the tuple
Choices
.
At most 128 choices can be presented to a Choose
type; to choose from more options, nest
Choose
s within each other.
Trait Implementations
impl<E, Choices: Any> Actionable<E> for Choose<Choices> where
Choices: Tuple,
Choices::AsList: EachSession,
<Choices::AsList as EachSession>::Dual: List + EachSession,
Choices::AsList: EachScoped<E::Depth>,
E: Environment,
[src]
Choices: Tuple,
Choices::AsList: EachSession,
<Choices::AsList as EachSession>::Dual: List + EachSession,
Choices::AsList: EachScoped<E::Depth>,
E: Environment,
type Action = Choose<Choices>
The next actual channel action: Send
, Recv
, Offer
, Choose
, or Split
.
This steps through Loop
, Break
, and Continue
transparently. Read more
type Env = E
impl<Choices: Clone> Clone for Choose<Choices>
[src]
impl<Choices: Copy> Copy for Choose<Choices>
[src]
impl<Choices: Debug> Debug for Choose<Choices>
[src]
impl<Choices: Default> Default for Choose<Choices>
[src]
impl<Choices: Eq> Eq for Choose<Choices>
[src]
impl<Choices: Hash> Hash for Choose<Choices>
[src]
pub fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<Choices: Ord> Ord for Choose<Choices>
[src]
pub fn cmp(&self, other: &Choose<Choices>) -> Ordering
[src]
#[must_use]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]
impl<Choices: PartialEq> PartialEq<Choose<Choices>> for Choose<Choices>
[src]
pub fn eq(&self, other: &Choose<Choices>) -> bool
[src]
pub fn ne(&self, other: &Choose<Choices>) -> bool
[src]
impl<Choices: PartialOrd> PartialOrd<Choose<Choices>> for Choose<Choices>
[src]
pub fn partial_cmp(&self, other: &Choose<Choices>) -> Option<Ordering>
[src]
pub fn lt(&self, other: &Choose<Choices>) -> bool
[src]
pub fn le(&self, other: &Choose<Choices>) -> bool
[src]
pub fn gt(&self, other: &Choose<Choices>) -> bool
[src]
pub fn ge(&self, other: &Choose<Choices>) -> bool
[src]
impl<N: Unary, Choices: Tuple + Any> Scoped<N> for Choose<Choices> where
Choices::AsList: EachScoped<N>,
<Choices::AsList as EachSession>::Dual: List,
[src]
Choices::AsList: EachScoped<N>,
<Choices::AsList as EachSession>::Dual: List,
impl<Choices: Any> Session for Choose<Choices> where
Choices: Tuple,
Choices::AsList: EachSession,
<Choices::AsList as EachSession>::Dual: List + EachSession,
[src]
Choices: Tuple,
Choices::AsList: EachSession,
<Choices::AsList as EachSession>::Dual: List + EachSession,
type Dual = Offer<<<Choices::AsList as EachSession>::Dual as List>::AsTuple>
The dual to this session type, i.e. the session type required of the other end of the channel. Read more
impl<Choices> StructuralEq for Choose<Choices>
[src]
impl<Choices> StructuralPartialEq for Choose<Choices>
[src]
Auto Trait Implementations
impl<Choices> RefUnwindSafe for Choose<Choices> where
Choices: RefUnwindSafe,
[src]
Choices: RefUnwindSafe,
impl<Choices> Send for Choose<Choices> where
Choices: Send,
[src]
Choices: Send,
impl<Choices> Sync for Choose<Choices> where
Choices: Sync,
[src]
Choices: Sync,
impl<Choices> Unpin for Choose<Choices> where
Choices: Unpin,
[src]
Choices: Unpin,
impl<Choices> UnwindSafe for Choose<Choices> where
Choices: UnwindSafe,
[src]
Choices: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<'a, T> CallBy<'a, Mut> for T where
T: 'a,
[src]
T: 'a,
impl<'a, T> CallBy<'a, Ref> for T where
T: 'a,
[src]
T: 'a,
impl<'a, T> CallBy<'a, Val> for T
[src]
type Type = T
The type of Self
when called by Convention
.
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
[src]
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
pub fn equivalent(&self, key: &K) -> bool
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,