Skip to main content

SignalVecDynClone

Trait SignalVecDynClone 

Source
pub trait SignalVecDynClone: SignalVec + DynClone { }
Expand description

An extension trait for SignalVec types that implement Clone.

Relevant in contexts where some function may require a Clone SignalVec, but the concrete type can’t be known at compile-time, e.g. in a .switch_signal_vec.

Trait Implementations§

Source§

impl<T: 'static> SignalVec for Box<dyn SignalVecDynClone<Item = T> + Send + Sync>

Source§

type Item = T

Output type.
Source§

fn register_boxed_signal_vec(self: Box<Self>, world: &mut World) -> SignalHandle

Registers the Systems associated with this SignalVec by consuming its boxed form. Read more
Source§

fn register_signal_vec(self, world: &mut World) -> SignalHandle
where Self: Sized,

Registers the Systems associated with this SignalVec.

Implementors§

Source§

impl<T: SignalVec + Clone + 'static> SignalVecDynClone for T