#[repr(transparent)]pub struct Loop<P>(pub P);
Expand description
Label a loop point, which can be reiterated with Continue
.
Tuple Fields§
§0: P
Trait Implementations§
Source§impl<P> Actionable for Loop<P>
impl<P> Actionable for Loop<P>
Source§type NextAction = <<P as Subst<Loop<P>>>::Substituted as Actionable>::NextAction
type NextAction = <<P as Subst<Loop<P>>>::Substituted as Actionable>::NextAction
Source§impl<P> HasDual for Loop<P>where
P: HasDual,
impl<P> HasDual for Loop<P>where
P: HasDual,
Source§type DualSession = Loop<<P as HasDual>::DualSession>
type DualSession = Loop<<P as HasDual>::DualSession>
The dual to this session type, i.e. the session type required of the other end of the
channel.
Source§impl<P: Ord> Ord for Loop<P>
impl<P: Ord> Ord for Loop<P>
Source§impl<P: PartialOrd> PartialOrd for Loop<P>
impl<P: PartialOrd> PartialOrd for Loop<P>
Source§impl<P, Q, N: Unary> Subst<Q, N> for Loop<P>
impl<P, Q, N: Unary> Subst<Q, N> for Loop<P>
Source§type Substituted = Loop<<P as Subst<Q, S<N>>>::Substituted>
type Substituted = Loop<<P as Subst<Q, S<N>>>::Substituted>
The result of the substitution.
impl<P: Copy> Copy for Loop<P>
impl<P: Eq> Eq for Loop<P>
impl<N: Unary, P: Scoped<S<N>>> Scoped<N> for Loop<P>
impl<P> StructuralPartialEq for Loop<P>
Auto Trait Implementations§
impl<P> Freeze for Loop<P>where
P: Freeze,
impl<P> RefUnwindSafe for Loop<P>where
P: RefUnwindSafe,
impl<P> Send for Loop<P>where
P: Send,
impl<P> Sync for Loop<P>where
P: Sync,
impl<P> Unpin for Loop<P>where
P: Unpin,
impl<P> UnwindSafe for Loop<P>where
P: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<S> Session for S
impl<S> Session for S
Source§type Dual = <S as HasDual>::DualSession
type Dual = <S as HasDual>::DualSession
The dual to this session type, i.e. the session type for the other side of this channel. Read more
Source§type Action = <S as Actionable>::NextAction
type Action = <S as Actionable>::NextAction
The canonical next channel action for this session type. Read more
Source§fn channel<Tx, Rx>(
make: impl FnMut() -> (Tx, Rx),
) -> (Chan<Self, Tx, Rx>, Chan<Self::Dual, Tx, Rx>)
fn channel<Tx, Rx>( make: impl FnMut() -> (Tx, Rx), ) -> (Chan<Self, Tx, Rx>, Chan<Self::Dual, Tx, Rx>)
Source§fn bichannel<Tx0, Rx0, Tx1, Rx1>(
make0: impl FnOnce() -> (Tx0, Rx0),
make1: impl FnOnce() -> (Tx1, Rx1),
) -> (Chan<Self, Tx0, Rx1>, Chan<Self::Dual, Tx1, Rx0>)
fn bichannel<Tx0, Rx0, Tx1, Rx1>( make0: impl FnOnce() -> (Tx0, Rx0), make1: impl FnOnce() -> (Tx1, Rx1), ) -> (Chan<Self, Tx0, Rx1>, Chan<Self::Dual, Tx1, Rx0>)
Source§fn wrap<Tx, Rx>(tx: Tx, rx: Rx) -> Chan<Self, Tx, Rx>
fn wrap<Tx, Rx>(tx: Tx, rx: Rx) -> Chan<Self, Tx, Rx>
Given a transmitting and receiving end of an un-session-typed connection, wrap them in a new
session-typed channel for the protocol
P.
Read more