pub struct ComponentPair<Left, Right> { /* private fields */ }Expand description
A Component that combines two Components.
It forwards the Component::component_provide methods to the underlying Components.
Implementations§
Source§impl<Left, Right> ComponentPair<Left, Right>
impl<Left, Right> ComponentPair<Left, Right>
Sourcepub fn into_inner(self) -> (Left, Right)
pub fn into_inner(self) -> (Left, Right)
Consume this ComponentPair and yield its left and right.
Trait Implementations§
Source§impl<Left: Clone, Right: Clone> Clone for ComponentPair<Left, Right>
impl<Left: Clone, Right: Clone> Clone for ComponentPair<Left, Right>
Source§fn clone(&self) -> ComponentPair<Left, Right>
fn clone(&self) -> ComponentPair<Left, Right>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<Left, Right> From<(Left, Right)> for ComponentPair<Left, Right>
impl<Left, Right> From<(Left, Right)> for ComponentPair<Left, Right>
Source§fn from(pair: (Left, Right)) -> Self
fn from(pair: (Left, Right)) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<Left, Right> Freeze for ComponentPair<Left, Right>
impl<Left, Right> RefUnwindSafe for ComponentPair<Left, Right>where
Left: RefUnwindSafe,
Right: RefUnwindSafe,
impl<Left, Right> Send for ComponentPair<Left, Right>
impl<Left, Right> Sync for ComponentPair<Left, Right>
impl<Left, Right> Unpin for ComponentPair<Left, Right>
impl<Left, Right> UnwindSafe for ComponentPair<Left, Right>where
Left: UnwindSafe,
Right: 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