[][src]Struct dialectic::types::Break

#[repr(transparent)]pub struct Break<N: Unary = Z>(pub N);

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]

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 = ()

The environment resulting from stepping through one or many Loop, Break, or Continue points to the next real channel action. Read more

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]

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

The environment resulting from stepping through one or many Loop, Break, or Continue points to the next real channel action. Read more

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]

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

The environment resulting from stepping through one or many Loop, Break, or Continue points to the next real channel action. Read more

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]

impl<N: Ord + Unary> Ord for Break<N>[src]

impl<N: PartialEq + Unary> PartialEq<Break<N>> for Break<N>[src]

impl<N: PartialOrd + Unary> PartialOrd<Break<N>> for Break<N>[src]

impl<N: Unary + Any, M: Unary + Any> Scoped<M> for Break<N> where
    N: LessThan<M>, 
[src]

A Break is well-Scoped if it refers to a loop that it is inside of.

impl<N: Unary + Any> Session for Break<N>[src]

All Breaks are valid session types.

type Dual = Break<N>

Break is self-dual.

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]

impl<N> Send for Break<N> where
    N: Send
[src]

impl<N> Sync for Break<N> where
    N: Sync
[src]

impl<N> Unpin for Break<N> where
    N: Unpin
[src]

impl<N> UnwindSafe for Break<N> where
    N: UnwindSafe
[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<'a, T> CallBy<'a, Mut> for T where
    T: 'a, 
[src]

type Type = &'a mut T

The type of Self when called by Convention.

impl<'a, T> CallBy<'a, Ref> for T where
    T: 'a, 
[src]

type Type = &'a T

The type of Self when called by Convention.

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]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.