pub struct HigherOrderComposer { /* private fields */ }Expand description
Higher-order composition abstractions for meta-composition
Provides higher-order abstractions for composing compositions, meta-level composition operations, and recursive composition patterns.
Implementations§
Source§impl HigherOrderComposer
impl HigherOrderComposer
Sourcepub fn compose_compositions<C1, C2>(self, comp1: C1, comp2: C2) -> Self
pub fn compose_compositions<C1, C2>(self, comp1: C1, comp2: C2) -> Self
Compose compositions (meta-composition)
Sourcepub fn combinator<C>(self, combinator: C) -> Self
pub fn combinator<C>(self, combinator: C) -> Self
Add composition combinator
Sourcepub fn recursive_pattern(self, pattern: RecursiveCompositionPattern) -> Self
pub fn recursive_pattern(self, pattern: RecursiveCompositionPattern) -> Self
Add recursive composition pattern
Sourcepub fn build(self) -> HigherOrderComposition
pub fn build(self) -> HigherOrderComposition
Build higher-order composition
Trait Implementations§
Source§impl Debug for HigherOrderComposer
impl Debug for HigherOrderComposer
Auto Trait Implementations§
impl Freeze for HigherOrderComposer
impl !RefUnwindSafe for HigherOrderComposer
impl Send for HigherOrderComposer
impl Sync for HigherOrderComposer
impl Unpin for HigherOrderComposer
impl !UnwindSafe for HigherOrderComposer
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more