Skip to main content

Uniform

Struct Uniform 

Source
pub struct Uniform<P, F: Set> { /* private fields */ }
Expand description

One-route representation with no route discriminant.

Implementations§

Source§

impl<P, F: Set> Uniform<P, F>

Source

pub const fn new(prep: P, body: Body<F::SyncOpen, F::SyncFinished>) -> Self

Source§

impl<P> Uniform<P, Admitted>

Trait Implementations§

Source§

impl<P, F, G> Admission<P, F, G> for Uniform<P, F>
where F: Set, G: Set,

Source§

type Output = Uniform<P, G>

Source§

fn admit<V: Visit<P, F, G>>( self, visit: &mut V, ) -> ControlFlow<V::Break, Self::Output>

Source§

impl<P, F: Set> Flow<F> for Uniform<P, F>

Source§

fn fold<T: Fold<F>>(self, fold: T) -> T::Output

Source§

impl<P, F: Set> Flow<P, F> for Uniform<P, F>

Source§

type Family = Uniforms<P>

Source§

fn each<'a, M: Each<P, F>>(&'a mut self, each: M) -> M::Output<'a>

Source§

fn map_retain<G: Set, M: Map<P, F, G>>( self, map: M, ) -> ControlFlow<M::Break, (M::Retained, Uniform<P, G>)>

Source§

fn fold<T: Fold<P, F>>(self, fold: T) -> T::Output

Source§

fn finish(self) -> Result<Self, Self>
where F: Finish,

Retags an open route arm as finished while retaining the same route, slot, payload owner, and generated-family discriminant storage.
Source§

fn each_open<'a, V: Each<F>>(&'a mut self, visit: V) -> V::Output<'a>
where F: Set,

Source§

fn fold_open<V: Fold<P, F>>(self, visit: V) -> V::Output
where F: Set,

Source§

fn consume<O, V: FnOnce(F::Body) -> O>(self, visit: V) -> O
where F: Set,

Source§

fn map<G: Set, M: Map<P, F, G, Retained = ()>>( self, map: M, ) -> ControlFlow<M::Break, <Self::Family as Family<P>>::State<G>>

Auto Trait Implementations§

§

impl<P, F> Forget for Uniform<P, F>

§

impl<P, F> Freeze for Uniform<P, F>
where Whole<P>: Freeze, Body<<F as Set>::SyncOpen, <F as Set>::SyncFinished>: Freeze,

§

impl<P, F> RefUnwindSafe for Uniform<P, F>

§

impl<P, F> Send for Uniform<P, F>
where Whole<P>: Send, Body<<F as Set>::SyncOpen, <F as Set>::SyncFinished>: Send,

§

impl<P, F> Sync for Uniform<P, F>
where Whole<P>: Sync, Body<<F as Set>::SyncOpen, <F as Set>::SyncFinished>: Sync,

§

impl<P, F> Unpin for Uniform<P, F>
where Whole<P>: Unpin, Body<<F as Set>::SyncOpen, <F as Set>::SyncFinished>: Unpin,

§

impl<P, F> UnsafeUnpin for Uniform<P, F>
where Whole<P>: UnsafeUnpin, Body<<F as Set>::SyncOpen, <F as Set>::SyncFinished>: UnsafeUnpin,

§

impl<P, F> UnwindSafe for Uniform<P, F>
where Whole<P>: UnwindSafe, Body<<F as Set>::SyncOpen, <F as Set>::SyncFinished>: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> Convert<T> for T

Source§

fn into(self) -> T

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.