[−][src]Struct dialectic::types::Break
Break out of a Loop
. The type-level index points to the loop to be broken, counted from the
innermost starting at Z
.
Trait Implementations
impl<P> Actionable<(P, ())> for Break<Z> where
P: Scoped<S<Z>>,
(P, ()): Environment + 'static,
Z: LessThan<<(P, ()) as Environment>::Depth>,
[src]
P: Scoped<S<Z>>,
(P, ()): Environment + 'static,
Z: LessThan<<(P, ()) as Environment>::Depth>,
When in the outermost loop, Break
exits that loop and finishes the session.
type Action = Done
The next actual channel action: Send
, Recv
, Offer
, Choose
, or Split
.
This steps through Loop
, Break
, and Continue
transparently. Read more
type Env = ()
impl<P, Q, Rest> Actionable<(P, (Q, Rest))> for Break<Z> where
Q: Actionable<(Q, Rest)>,
P: Scoped<S<S<<Rest as Environment>::Depth>>>,
Q: Scoped<S<<Rest as Environment>::Depth>>,
Q::Env: Environment,
(P, (Q, Rest)): Environment + 'static,
(Q, Rest): Environment,
Rest: Environment,
Z: LessThan<<(P, (Q, Rest)) as Environment>::Depth>,
[src]
Q: Actionable<(Q, Rest)>,
P: Scoped<S<S<<Rest as Environment>::Depth>>>,
Q: Scoped<S<<Rest as Environment>::Depth>>,
Q::Env: Environment,
(P, (Q, Rest)): Environment + 'static,
(Q, Rest): Environment,
Rest: Environment,
Z: LessThan<<(P, (Q, Rest)) as Environment>::Depth>,
Break from a non-outermost loop: continue whatever loop we broke into.
type Action = Q::Action
The next actual channel action: Send
, Recv
, Offer
, Choose
, or Split
.
This steps through Loop
, Break
, and Continue
transparently. Read more
type Env = Q::Env
impl<N: Unary, P, Rest> Actionable<(P, Rest)> for Break<S<N>> where
P: Scoped<S<<Rest as Environment>::Depth>>,
N: LessThan<Rest::Depth>,
Break<N>: Actionable<Rest>,
(P, Rest): Environment + 'static,
Rest: Environment,
S<N>: LessThan<<(P, Rest) as Environment>::Depth>,
[src]
P: Scoped<S<<Rest as Environment>::Depth>>,
N: LessThan<Rest::Depth>,
Break<N>: Actionable<Rest>,
(P, Rest): Environment + 'static,
Rest: Environment,
S<N>: LessThan<<(P, Rest) as Environment>::Depth>,
Inductive case: break one less level from one less loop.
type Action = <Break<N> as Actionable<Rest>>::Action
The next actual channel action: Send
, Recv
, Offer
, Choose
, or Split
.
This steps through Loop
, Break
, and Continue
transparently. Read more
type Env = <Break<N> as Actionable<Rest>>::Env
impl<N: Clone + Unary> Clone for Break<N>
[src]
impl<N: Copy + Unary> Copy for Break<N>
[src]
impl<N: Debug + Unary> Debug for Break<N>
[src]
impl<N: Default + Unary> Default for Break<N>
[src]
impl<N: Eq + Unary> Eq for Break<N>
[src]
impl<N: Hash + Unary> Hash for Break<N>
[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<N: Ord + Unary> Ord for Break<N>
[src]
pub fn cmp(&self, other: &Break<N>) -> 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<N: PartialEq + Unary> PartialEq<Break<N>> for Break<N>
[src]
impl<N: PartialOrd + Unary> PartialOrd<Break<N>> for Break<N>
[src]
pub fn partial_cmp(&self, other: &Break<N>) -> Option<Ordering>
[src]
pub fn lt(&self, other: &Break<N>) -> bool
[src]
pub fn le(&self, other: &Break<N>) -> bool
[src]
pub fn gt(&self, other: &Break<N>) -> bool
[src]
pub fn ge(&self, other: &Break<N>) -> bool
[src]
impl<N: Unary + Any, M: Unary + Any> Scoped<M> for Break<N> where
N: LessThan<M>,
[src]
N: LessThan<M>,
impl<N: Unary + Any> Session for Break<N>
[src]
All Break
s are valid session types.
impl<N: Unary> StructuralEq for Break<N>
[src]
impl<N: Unary> StructuralPartialEq for Break<N>
[src]
Auto Trait Implementations
impl<N> RefUnwindSafe for Break<N> where
N: RefUnwindSafe,
[src]
N: RefUnwindSafe,
impl<N> Send for Break<N> where
N: Send,
[src]
N: Send,
impl<N> Sync for Break<N> where
N: Sync,
[src]
N: Sync,
impl<N> Unpin for Break<N> where
N: Unpin,
[src]
N: Unpin,
impl<N> UnwindSafe for Break<N> where
N: UnwindSafe,
[src]
N: 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>,