pub struct AlgebraicComposition {
pub composition_id: String,
pub sum_types: Vec<SumTypeComposition>,
pub product_types: Vec<ProductTypeComposition>,
pub pattern_matchers: Vec<Box<dyn PatternMatcher>>,
pub algebraic_ops: Vec<AlgebraicOperation>,
}Expand description
Algebraic composition
Fields§
§composition_id: StringComposition identifier
sum_types: Vec<SumTypeComposition>Sum type compositions
product_types: Vec<ProductTypeComposition>Product type compositions
pattern_matchers: Vec<Box<dyn PatternMatcher>>Pattern matchers
algebraic_ops: Vec<AlgebraicOperation>Algebraic operations
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AlgebraicComposition
impl !RefUnwindSafe for AlgebraicComposition
impl Send for AlgebraicComposition
impl Sync for AlgebraicComposition
impl Unpin for AlgebraicComposition
impl !UnwindSafe for AlgebraicComposition
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