pub struct ComposedComponent<A, B>{
pub a: A,
pub b: B,
pub split: StateSplit,
}Expand description
A composed component that combines two components.
The state space is the geometric product of the child states.
Fields§
§a: AFirst component
b: BSecond component
split: StateSplitHow to split state between components
Implementations§
Source§impl<A, B> ComposedComponent<A, B>
impl<A, B> ComposedComponent<A, B>
Sourcepub fn with_split(a: A, b: B, split: StateSplit) -> Self
pub fn with_split(a: A, b: B, split: StateSplit) -> Self
Create with specified state split.
Trait Implementations§
Source§impl<A, B> Component for ComposedComponent<A, B>
impl<A, B> Component for ComposedComponent<A, B>
Auto Trait Implementations§
impl<A, B> Freeze for ComposedComponent<A, B>
impl<A, B> RefUnwindSafe for ComposedComponent<A, B>where
A: RefUnwindSafe,
B: RefUnwindSafe,
impl<A, B> Send for ComposedComponent<A, B>
impl<A, B> Sync for ComposedComponent<A, B>
impl<A, B> Unpin for ComposedComponent<A, B>
impl<A, B> UnsafeUnpin for ComposedComponent<A, B>where
A: UnsafeUnpin,
B: UnsafeUnpin,
impl<A, B> UnwindSafe for ComposedComponent<A, B>where
A: UnwindSafe,
B: 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