derive clone
This commit is contained in:
parent
bbf25231ba
commit
3a8355f1ad
@ -252,6 +252,7 @@ where
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// An [`IntoSystem`] creating an instance of [`PipeSystem`].
|
/// An [`IntoSystem`] creating an instance of [`PipeSystem`].
|
||||||
|
#[derive(Clone)]
|
||||||
pub struct IntoPipeSystem<A, B> {
|
pub struct IntoPipeSystem<A, B> {
|
||||||
a: A,
|
a: A,
|
||||||
b: B,
|
b: B,
|
||||||
@ -285,17 +286,6 @@ where
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<A, B> Clone for IntoPipeSystem<A, B>
|
|
||||||
where
|
|
||||||
A: Clone,
|
|
||||||
B: Clone,
|
|
||||||
{
|
|
||||||
/// Clone the piped system. The cloned instance must be `.initialize()`d before it can run.
|
|
||||||
fn clone(&self) -> Self {
|
|
||||||
IntoPipeSystem::new(self.a.clone(), self.b.clone())
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// A [`System`] created by piping the output of the first system into the input of the second.
|
/// A [`System`] created by piping the output of the first system into the input of the second.
|
||||||
///
|
///
|
||||||
/// This can be repeated indefinitely, but system pipes cannot branch: the output is consumed by the receiving system.
|
/// This can be repeated indefinitely, but system pipes cannot branch: the output is consumed by the receiving system.
|
||||||
|
Loading…
Reference in New Issue
Block a user