Skip to main content

FunctionSystem

Struct FunctionSystem 

Source
pub struct FunctionSystem<F, Marker> {
    pub func: F,
    /* private fields */
}

Fields§

§func: F

Trait Implementations§

Source§

impl<T> System for FunctionSystem<T, ()>
where T: for<'a> FnMut() + 'static,

Source§

fn run(&mut self, _world: &World, _resources: &Resources)

Source§

impl<T, A> System for FunctionSystem<T, (A,)>
where T: for<'a> FnMut(A::Item<'a>) + 'static, A: SystemParam + 'static,

Source§

fn run(&mut self, _world: &World, _resources: &Resources)

Source§

impl<T, A, B> System for FunctionSystem<T, (A, B)>
where T: for<'a> FnMut(A::Item<'a>, B::Item<'a>) + 'static, A: SystemParam + 'static, B: SystemParam + 'static,

Source§

fn run(&mut self, _world: &World, _resources: &Resources)

Source§

impl<T, A, B, C> System for FunctionSystem<T, (A, B, C)>
where T: for<'a> FnMut(A::Item<'a>, B::Item<'a>, C::Item<'a>) + 'static, A: SystemParam + 'static, B: SystemParam + 'static, C: SystemParam + 'static,

Source§

fn run(&mut self, _world: &World, _resources: &Resources)

Source§

impl<T, A, B, C, D> System for FunctionSystem<T, (A, B, C, D)>
where T: for<'a> FnMut(A::Item<'a>, B::Item<'a>, C::Item<'a>, D::Item<'a>) + 'static, A: SystemParam + 'static, B: SystemParam + 'static, C: SystemParam + 'static, D: SystemParam + 'static,

Source§

fn run(&mut self, _world: &World, _resources: &Resources)

Source§

impl<T, A, B, C, D, E> System for FunctionSystem<T, (A, B, C, D, E)>
where T: for<'a> FnMut(A::Item<'a>, B::Item<'a>, C::Item<'a>, D::Item<'a>, E::Item<'a>) + 'static, A: SystemParam + 'static, B: SystemParam + 'static, C: SystemParam + 'static, D: SystemParam + 'static, E: SystemParam + 'static,

Source§

fn run(&mut self, _world: &World, _resources: &Resources)

Source§

impl<T, A, B, C, D, E, F> System for FunctionSystem<T, (A, B, C, D, E, F)>
where T: for<'a> FnMut(A::Item<'a>, B::Item<'a>, C::Item<'a>, D::Item<'a>, E::Item<'a>, F::Item<'a>) + 'static, A: SystemParam + 'static, B: SystemParam + 'static, C: SystemParam + 'static, D: SystemParam + 'static, E: SystemParam + 'static, F: SystemParam + 'static,

Source§

fn run(&mut self, _world: &World, _resources: &Resources)

Source§

impl<T, A, B, C, D, E, F, G> System for FunctionSystem<T, (A, B, C, D, E, F, G)>
where T: for<'a> FnMut(A::Item<'a>, B::Item<'a>, C::Item<'a>, D::Item<'a>, E::Item<'a>, F::Item<'a>, G::Item<'a>) + 'static, A: SystemParam + 'static, B: SystemParam + 'static, C: SystemParam + 'static, D: SystemParam + 'static, E: SystemParam + 'static, F: SystemParam + 'static, G: SystemParam + 'static,

Source§

fn run(&mut self, _world: &World, _resources: &Resources)

Source§

impl<T, A, B, C, D, E, F, G, H> System for FunctionSystem<T, (A, B, C, D, E, F, G, H)>
where T: for<'a> FnMut(A::Item<'a>, B::Item<'a>, C::Item<'a>, D::Item<'a>, E::Item<'a>, F::Item<'a>, G::Item<'a>, H::Item<'a>) + 'static, A: SystemParam + 'static, B: SystemParam + 'static, C: SystemParam + 'static, D: SystemParam + 'static, E: SystemParam + 'static, F: SystemParam + 'static, G: SystemParam + 'static, H: SystemParam + 'static,

Source§

fn run(&mut self, _world: &World, _resources: &Resources)

Auto Trait Implementations§

§

impl<F, Marker> Freeze for FunctionSystem<F, Marker>
where F: Freeze,

§

impl<F, Marker> RefUnwindSafe for FunctionSystem<F, Marker>
where F: RefUnwindSafe, Marker: RefUnwindSafe,

§

impl<F, Marker> Send for FunctionSystem<F, Marker>
where F: Send, Marker: Send,

§

impl<F, Marker> Sync for FunctionSystem<F, Marker>
where F: Sync, Marker: Sync,

§

impl<F, Marker> Unpin for FunctionSystem<F, Marker>
where F: Unpin, Marker: Unpin,

§

impl<F, Marker> UnsafeUnpin for FunctionSystem<F, Marker>
where F: UnsafeUnpin,

§

impl<F, Marker> UnwindSafe for FunctionSystem<F, Marker>
where F: UnwindSafe, Marker: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> Component for T
where T: Send + Sync + 'static,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more