pub struct GameFeaturesSystemBundle<S, E, I, K, ST = (), U = ()> { /* private fields */ }Expand description
Creates a bundle of systems for the game_features crate.
§Generics
- S: Stats Id
- E: Effectors Id
- I: Items Id
- K: Skill
- ST: Inventory SlotTypes. Defaults to
(). - U: User ItemInstance Data. Defaults to
().
Trait Implementations§
Source§impl<S, E, I, K, ST, U> Bundle for GameFeaturesSystemBundle<S, E, I, K, ST, U>where
S: Eq + Hash + Send + Sync + 'static + Clone,
E: Eq + Hash + Send + Sync + 'static + Clone,
I: Eq + Hash + Send + Sync + 'static + Clone + Debug,
K: Eq + Hash + Send + Sync + 'static + Debug,
ST: Eq + Hash + Send + Sync + 'static + SlotType,
U: Eq + Hash + Send + Sync + 'static + Clone + Debug + Default,
impl<S, E, I, K, ST, U> Bundle for GameFeaturesSystemBundle<S, E, I, K, ST, U>where
S: Eq + Hash + Send + Sync + 'static + Clone,
E: Eq + Hash + Send + Sync + 'static + Clone,
I: Eq + Hash + Send + Sync + 'static + Clone + Debug,
K: Eq + Hash + Send + Sync + 'static + Debug,
ST: Eq + Hash + Send + Sync + 'static + SlotType,
U: Eq + Hash + Send + Sync + 'static + Clone + Debug + Default,
Source§fn systems() -> Vec<System>
fn systems() -> Vec<System>
Returns all the systems of this bundle.
This should normally be the only function you need to implement.
Source§fn insert(builder: DispatcherBuilder) -> DispatcherBuilder
fn insert(builder: DispatcherBuilder) -> DispatcherBuilder
Inserts the systems of this bundle into the provided
DispatcherBuilder.
A default implementation is already provided for you.Auto Trait Implementations§
impl<S, E, I, K, ST, U> Freeze for GameFeaturesSystemBundle<S, E, I, K, ST, U>
impl<S, E, I, K, ST, U> RefUnwindSafe for GameFeaturesSystemBundle<S, E, I, K, ST, U>where
S: RefUnwindSafe,
E: RefUnwindSafe,
I: RefUnwindSafe,
K: RefUnwindSafe,
ST: RefUnwindSafe,
U: RefUnwindSafe,
impl<S, E, I, K, ST, U> Send for GameFeaturesSystemBundle<S, E, I, K, ST, U>
impl<S, E, I, K, ST, U> Sync for GameFeaturesSystemBundle<S, E, I, K, ST, U>
impl<S, E, I, K, ST, U> Unpin for GameFeaturesSystemBundle<S, E, I, K, ST, U>
impl<S, E, I, K, ST, U> UnwindSafe for GameFeaturesSystemBundle<S, E, I, K, ST, U>
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> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
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