Struct FnOnceSystem

Source
pub struct FnOnceSystem<Req, F> { /* private fields */ }
Expand description

A system that is FnOnce.

The purpose of this type is to remove boilerplate code related to system declaration when clients make systems using functions. Unlike types like struct or enum, functions have parameters which explains what types the functions need. The crate exploits the information then makes boilerplate code for clients.

Plus, there is FnSystem for FnMut.

  • Req - Arbitrary length of parameters of F.
  • F - Function.

Trait Implementations§

Source§

impl<Req, F> Debug for FnOnceSystem<Req, F>
where Self: System,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<F, EW> From<F> for FnOnceSystem<(Ph, Ph, Ph, Ph, EW), F>
where F: FnOnce(EntWrite<'_, EW>), EW: EntQueryMut,

Source§

fn from(value: F) -> Self

Converts to this type from the input type.
Source§

impl<F> From<F> for FnOnceSystem<(Ph, Ph, Ph, Ph, Ph), F>
where F: FnOnce(),

Source§

fn from(value: F) -> Self

Converts to this type from the input type.
Source§

impl<F, RW, EW> From<F> for FnOnceSystem<(Ph, Ph, Ph, RW, EW), F>
where F: FnOnce(ResWrite<'_, RW>, EntWrite<'_, EW>), RW: ResQueryMut, EW: EntQueryMut,

Source§

fn from(value: F) -> Self

Converts to this type from the input type.
Source§

impl<F, RW> From<F> for FnOnceSystem<(Ph, Ph, Ph, RW, Ph), F>
where F: FnOnce(ResWrite<'_, RW>), RW: ResQueryMut,

Source§

fn from(value: F) -> Self

Converts to this type from the input type.
Source§

impl<F, RR, EW> From<F> for FnOnceSystem<(Ph, Ph, RR, Ph, EW), F>
where F: FnOnce(ResRead<'_, RR>, EntWrite<'_, EW>), RR: ResQuery, EW: EntQueryMut,

Source§

fn from(value: F) -> Self

Converts to this type from the input type.
Source§

impl<F, RR> From<F> for FnOnceSystem<(Ph, Ph, RR, Ph, Ph), F>
where F: FnOnce(ResRead<'_, RR>), RR: ResQuery,

Source§

fn from(value: F) -> Self

Converts to this type from the input type.
Source§

impl<F, RR, RW, EW> From<F> for FnOnceSystem<(Ph, Ph, RR, RW, EW), F>
where F: FnOnce(ResRead<'_, RR>, ResWrite<'_, RW>, EntWrite<'_, EW>), RR: ResQuery, RW: ResQueryMut, EW: EntQueryMut,

Source§

fn from(value: F) -> Self

Converts to this type from the input type.
Source§

impl<F, RR, RW> From<F> for FnOnceSystem<(Ph, Ph, RR, RW, Ph), F>
where F: FnOnce(ResRead<'_, RR>, ResWrite<'_, RW>), RR: ResQuery, RW: ResQueryMut,

Source§

fn from(value: F) -> Self

Converts to this type from the input type.
Source§

impl<F, W, EW> From<F> for FnOnceSystem<(Ph, W, Ph, Ph, EW), F>
where F: FnOnce(Write<'_, W>, EntWrite<'_, EW>), W: QueryMut, EW: EntQueryMut,

Source§

fn from(value: F) -> Self

Converts to this type from the input type.
Source§

impl<F, W> From<F> for FnOnceSystem<(Ph, W, Ph, Ph, Ph), F>
where F: FnOnce(Write<'_, W>), W: QueryMut,

Source§

fn from(value: F) -> Self

Converts to this type from the input type.
Source§

impl<F, W, RW, EW> From<F> for FnOnceSystem<(Ph, W, Ph, RW, EW), F>
where F: FnOnce(Write<'_, W>, ResWrite<'_, RW>, EntWrite<'_, EW>), W: QueryMut, RW: ResQueryMut, EW: EntQueryMut,

Source§

fn from(value: F) -> Self

Converts to this type from the input type.
Source§

impl<F, W, RW> From<F> for FnOnceSystem<(Ph, W, Ph, RW, Ph), F>
where F: FnOnce(Write<'_, W>, ResWrite<'_, RW>), W: QueryMut, RW: ResQueryMut,

Source§

fn from(value: F) -> Self

Converts to this type from the input type.
Source§

impl<F, W, RR, EW> From<F> for FnOnceSystem<(Ph, W, RR, Ph, EW), F>
where F: FnOnce(Write<'_, W>, ResRead<'_, RR>, EntWrite<'_, EW>), W: QueryMut, RR: ResQuery, EW: EntQueryMut,

Source§

fn from(value: F) -> Self

Converts to this type from the input type.
Source§

impl<F, W, RR> From<F> for FnOnceSystem<(Ph, W, RR, Ph, Ph), F>
where F: FnOnce(Write<'_, W>, ResRead<'_, RR>), W: QueryMut, RR: ResQuery,

Source§

fn from(value: F) -> Self

Converts to this type from the input type.
Source§

impl<F, W, RR, RW, EW> From<F> for FnOnceSystem<(Ph, W, RR, RW, EW), F>
where F: FnOnce(Write<'_, W>, ResRead<'_, RR>, ResWrite<'_, RW>, EntWrite<'_, EW>), W: QueryMut, RR: ResQuery, RW: ResQueryMut, EW: EntQueryMut,

Source§

fn from(value: F) -> Self

Converts to this type from the input type.
Source§

impl<F, W, RR, RW> From<F> for FnOnceSystem<(Ph, W, RR, RW, Ph), F>
where F: FnOnce(Write<'_, W>, ResRead<'_, RR>, ResWrite<'_, RW>), W: QueryMut, RR: ResQuery, RW: ResQueryMut,

Source§

fn from(value: F) -> Self

Converts to this type from the input type.
Source§

impl<F, R, EW> From<F> for FnOnceSystem<(R, Ph, Ph, Ph, EW), F>
where F: FnOnce(Read<'_, R>, EntWrite<'_, EW>), R: Query, EW: EntQueryMut,

Source§

fn from(value: F) -> Self

Converts to this type from the input type.
Source§

impl<F, R> From<F> for FnOnceSystem<(R, Ph, Ph, Ph, Ph), F>
where F: FnOnce(Read<'_, R>), R: Query,

Source§

fn from(value: F) -> Self

Converts to this type from the input type.
Source§

impl<F, R, RW, EW> From<F> for FnOnceSystem<(R, Ph, Ph, RW, EW), F>
where F: FnOnce(Read<'_, R>, ResWrite<'_, RW>, EntWrite<'_, EW>), R: Query, RW: ResQueryMut, EW: EntQueryMut,

Source§

fn from(value: F) -> Self

Converts to this type from the input type.
Source§

impl<F, R, RW> From<F> for FnOnceSystem<(R, Ph, Ph, RW, Ph), F>
where F: FnOnce(Read<'_, R>, ResWrite<'_, RW>), R: Query, RW: ResQueryMut,

Source§

fn from(value: F) -> Self

Converts to this type from the input type.
Source§

impl<F, R, RR, EW> From<F> for FnOnceSystem<(R, Ph, RR, Ph, EW), F>
where F: FnOnce(Read<'_, R>, ResRead<'_, RR>, EntWrite<'_, EW>), R: Query, RR: ResQuery, EW: EntQueryMut,

Source§

fn from(value: F) -> Self

Converts to this type from the input type.
Source§

impl<F, R, RR> From<F> for FnOnceSystem<(R, Ph, RR, Ph, Ph), F>
where F: FnOnce(Read<'_, R>, ResRead<'_, RR>), R: Query, RR: ResQuery,

Source§

fn from(value: F) -> Self

Converts to this type from the input type.
Source§

impl<F, R, RR, RW, EW> From<F> for FnOnceSystem<(R, Ph, RR, RW, EW), F>
where F: FnOnce(Read<'_, R>, ResRead<'_, RR>, ResWrite<'_, RW>, EntWrite<'_, EW>), R: Query, RR: ResQuery, RW: ResQueryMut, EW: EntQueryMut,

Source§

fn from(value: F) -> Self

Converts to this type from the input type.
Source§

impl<F, R, RR, RW> From<F> for FnOnceSystem<(R, Ph, RR, RW, Ph), F>
where F: FnOnce(Read<'_, R>, ResRead<'_, RR>, ResWrite<'_, RW>), R: Query, RR: ResQuery, RW: ResQueryMut,

Source§

fn from(value: F) -> Self

Converts to this type from the input type.
Source§

impl<F, R, W, EW> From<F> for FnOnceSystem<(R, W, Ph, Ph, EW), F>
where F: FnOnce(Read<'_, R>, Write<'_, W>, EntWrite<'_, EW>), R: Query, W: QueryMut, EW: EntQueryMut,

Source§

fn from(value: F) -> Self

Converts to this type from the input type.
Source§

impl<F, R, W> From<F> for FnOnceSystem<(R, W, Ph, Ph, Ph), F>
where F: FnOnce(Read<'_, R>, Write<'_, W>), R: Query, W: QueryMut,

Source§

fn from(value: F) -> Self

Converts to this type from the input type.
Source§

impl<F, R, W, RW, EW> From<F> for FnOnceSystem<(R, W, Ph, RW, EW), F>
where F: FnOnce(Read<'_, R>, Write<'_, W>, ResWrite<'_, RW>, EntWrite<'_, EW>), R: Query, W: QueryMut, RW: ResQueryMut, EW: EntQueryMut,

Source§

fn from(value: F) -> Self

Converts to this type from the input type.
Source§

impl<F, R, W, RW> From<F> for FnOnceSystem<(R, W, Ph, RW, Ph), F>
where F: FnOnce(Read<'_, R>, Write<'_, W>, ResWrite<'_, RW>), R: Query, W: QueryMut, RW: ResQueryMut,

Source§

fn from(value: F) -> Self

Converts to this type from the input type.
Source§

impl<F, R, W, RR, EW> From<F> for FnOnceSystem<(R, W, RR, Ph, EW), F>
where F: FnOnce(Read<'_, R>, Write<'_, W>, ResRead<'_, RR>, EntWrite<'_, EW>), R: Query, W: QueryMut, RR: ResQuery, EW: EntQueryMut,

Source§

fn from(value: F) -> Self

Converts to this type from the input type.
Source§

impl<F, R, W, RR> From<F> for FnOnceSystem<(R, W, RR, Ph, Ph), F>
where F: FnOnce(Read<'_, R>, Write<'_, W>, ResRead<'_, RR>), R: Query, W: QueryMut, RR: ResQuery,

Source§

fn from(value: F) -> Self

Converts to this type from the input type.
Source§

impl<F, R, W, RR, RW, EW> From<F> for FnOnceSystem<(R, W, RR, RW, EW), F>
where F: FnOnce(Read<'_, R>, Write<'_, W>, ResRead<'_, RR>, ResWrite<'_, RW>, EntWrite<'_, EW>), R: Query, W: QueryMut, RR: ResQuery, RW: ResQueryMut, EW: EntQueryMut,

Source§

fn from(value: F) -> Self

Converts to this type from the input type.
Source§

impl<F, R, W, RR, RW> From<F> for FnOnceSystem<(R, W, RR, RW, Ph), F>
where F: FnOnce(Read<'_, R>, Write<'_, W>, ResRead<'_, RR>, ResWrite<'_, RW>), R: Query, W: QueryMut, RR: ResQuery, RW: ResQueryMut,

Source§

fn from(value: F) -> Self

Converts to this type from the input type.
Source§

impl<F, EW> System for FnOnceSystem<(Ph, Ph, Ph, Ph, EW), F>
where F: FnOnce(EntWrite<'_, EW>) + Send + 'static, EW: EntQueryMut,

Source§

type Request = ((), (), (), (), EW)

Source§

fn run(&mut self, _resp: Response<'_, Self::Request>)

Runs the system with the response corresponding to its request.
Source§

fn name() -> &'static str

Returns system name.
Source§

fn on_transition(&mut self, from: SystemState, to: SystemState)

Does a certain behavior on transitions of system state. Read more
Source§

impl<F> System for FnOnceSystem<(Ph, Ph, Ph, Ph, Ph), F>
where F: FnOnce() + Send + 'static,

Source§

type Request = ((), (), (), (), ())

Source§

fn run(&mut self, _resp: Response<'_, Self::Request>)

Runs the system with the response corresponding to its request.
Source§

fn name() -> &'static str

Returns system name.
Source§

fn on_transition(&mut self, from: SystemState, to: SystemState)

Does a certain behavior on transitions of system state. Read more
Source§

impl<F, RW, EW> System for FnOnceSystem<(Ph, Ph, Ph, RW, EW), F>
where F: FnOnce(ResWrite<'_, RW>, EntWrite<'_, EW>) + Send + 'static, RW: ResQueryMut, EW: EntQueryMut,

Source§

type Request = ((), (), (), RW, EW)

Source§

fn run(&mut self, _resp: Response<'_, Self::Request>)

Runs the system with the response corresponding to its request.
Source§

fn name() -> &'static str

Returns system name.
Source§

fn on_transition(&mut self, from: SystemState, to: SystemState)

Does a certain behavior on transitions of system state. Read more
Source§

impl<F, RW> System for FnOnceSystem<(Ph, Ph, Ph, RW, Ph), F>
where F: FnOnce(ResWrite<'_, RW>) + Send + 'static, RW: ResQueryMut,

Source§

type Request = ((), (), (), RW, ())

Source§

fn run(&mut self, _resp: Response<'_, Self::Request>)

Runs the system with the response corresponding to its request.
Source§

fn name() -> &'static str

Returns system name.
Source§

fn on_transition(&mut self, from: SystemState, to: SystemState)

Does a certain behavior on transitions of system state. Read more
Source§

impl<F, RR, EW> System for FnOnceSystem<(Ph, Ph, RR, Ph, EW), F>
where F: FnOnce(ResRead<'_, RR>, EntWrite<'_, EW>) + Send + 'static, RR: ResQuery, EW: EntQueryMut,

Source§

type Request = ((), (), RR, (), EW)

Source§

fn run(&mut self, _resp: Response<'_, Self::Request>)

Runs the system with the response corresponding to its request.
Source§

fn name() -> &'static str

Returns system name.
Source§

fn on_transition(&mut self, from: SystemState, to: SystemState)

Does a certain behavior on transitions of system state. Read more
Source§

impl<F, RR> System for FnOnceSystem<(Ph, Ph, RR, Ph, Ph), F>
where F: FnOnce(ResRead<'_, RR>) + Send + 'static, RR: ResQuery,

Source§

type Request = ((), (), RR, (), ())

Source§

fn run(&mut self, _resp: Response<'_, Self::Request>)

Runs the system with the response corresponding to its request.
Source§

fn name() -> &'static str

Returns system name.
Source§

fn on_transition(&mut self, from: SystemState, to: SystemState)

Does a certain behavior on transitions of system state. Read more
Source§

impl<F, RR, RW, EW> System for FnOnceSystem<(Ph, Ph, RR, RW, EW), F>
where F: FnOnce(ResRead<'_, RR>, ResWrite<'_, RW>, EntWrite<'_, EW>) + Send + 'static, RR: ResQuery, RW: ResQueryMut, EW: EntQueryMut,

Source§

type Request = ((), (), RR, RW, EW)

Source§

fn run(&mut self, _resp: Response<'_, Self::Request>)

Runs the system with the response corresponding to its request.
Source§

fn name() -> &'static str

Returns system name.
Source§

fn on_transition(&mut self, from: SystemState, to: SystemState)

Does a certain behavior on transitions of system state. Read more
Source§

impl<F, RR, RW> System for FnOnceSystem<(Ph, Ph, RR, RW, Ph), F>
where F: FnOnce(ResRead<'_, RR>, ResWrite<'_, RW>) + Send + 'static, RR: ResQuery, RW: ResQueryMut,

Source§

type Request = ((), (), RR, RW, ())

Source§

fn run(&mut self, _resp: Response<'_, Self::Request>)

Runs the system with the response corresponding to its request.
Source§

fn name() -> &'static str

Returns system name.
Source§

fn on_transition(&mut self, from: SystemState, to: SystemState)

Does a certain behavior on transitions of system state. Read more
Source§

impl<F, W, EW> System for FnOnceSystem<(Ph, W, Ph, Ph, EW), F>
where F: FnOnce(Write<'_, W>, EntWrite<'_, EW>) + Send + 'static, W: QueryMut, EW: EntQueryMut,

Source§

type Request = ((), W, (), (), EW)

Source§

fn run(&mut self, _resp: Response<'_, Self::Request>)

Runs the system with the response corresponding to its request.
Source§

fn name() -> &'static str

Returns system name.
Source§

fn on_transition(&mut self, from: SystemState, to: SystemState)

Does a certain behavior on transitions of system state. Read more
Source§

impl<F, W> System for FnOnceSystem<(Ph, W, Ph, Ph, Ph), F>
where F: FnOnce(Write<'_, W>) + Send + 'static, W: QueryMut,

Source§

type Request = ((), W, (), (), ())

Source§

fn run(&mut self, _resp: Response<'_, Self::Request>)

Runs the system with the response corresponding to its request.
Source§

fn name() -> &'static str

Returns system name.
Source§

fn on_transition(&mut self, from: SystemState, to: SystemState)

Does a certain behavior on transitions of system state. Read more
Source§

impl<F, W, RW, EW> System for FnOnceSystem<(Ph, W, Ph, RW, EW), F>
where F: FnOnce(Write<'_, W>, ResWrite<'_, RW>, EntWrite<'_, EW>) + Send + 'static, W: QueryMut, RW: ResQueryMut, EW: EntQueryMut,

Source§

type Request = ((), W, (), RW, EW)

Source§

fn run(&mut self, _resp: Response<'_, Self::Request>)

Runs the system with the response corresponding to its request.
Source§

fn name() -> &'static str

Returns system name.
Source§

fn on_transition(&mut self, from: SystemState, to: SystemState)

Does a certain behavior on transitions of system state. Read more
Source§

impl<F, W, RW> System for FnOnceSystem<(Ph, W, Ph, RW, Ph), F>
where F: FnOnce(Write<'_, W>, ResWrite<'_, RW>) + Send + 'static, W: QueryMut, RW: ResQueryMut,

Source§

type Request = ((), W, (), RW, ())

Source§

fn run(&mut self, _resp: Response<'_, Self::Request>)

Runs the system with the response corresponding to its request.
Source§

fn name() -> &'static str

Returns system name.
Source§

fn on_transition(&mut self, from: SystemState, to: SystemState)

Does a certain behavior on transitions of system state. Read more
Source§

impl<F, W, RR, EW> System for FnOnceSystem<(Ph, W, RR, Ph, EW), F>
where F: FnOnce(Write<'_, W>, ResRead<'_, RR>, EntWrite<'_, EW>) + Send + 'static, W: QueryMut, RR: ResQuery, EW: EntQueryMut,

Source§

type Request = ((), W, RR, (), EW)

Source§

fn run(&mut self, _resp: Response<'_, Self::Request>)

Runs the system with the response corresponding to its request.
Source§

fn name() -> &'static str

Returns system name.
Source§

fn on_transition(&mut self, from: SystemState, to: SystemState)

Does a certain behavior on transitions of system state. Read more
Source§

impl<F, W, RR> System for FnOnceSystem<(Ph, W, RR, Ph, Ph), F>
where F: FnOnce(Write<'_, W>, ResRead<'_, RR>) + Send + 'static, W: QueryMut, RR: ResQuery,

Source§

type Request = ((), W, RR, (), ())

Source§

fn run(&mut self, _resp: Response<'_, Self::Request>)

Runs the system with the response corresponding to its request.
Source§

fn name() -> &'static str

Returns system name.
Source§

fn on_transition(&mut self, from: SystemState, to: SystemState)

Does a certain behavior on transitions of system state. Read more
Source§

impl<F, W, RR, RW, EW> System for FnOnceSystem<(Ph, W, RR, RW, EW), F>
where F: FnOnce(Write<'_, W>, ResRead<'_, RR>, ResWrite<'_, RW>, EntWrite<'_, EW>) + Send + 'static, W: QueryMut, RR: ResQuery, RW: ResQueryMut, EW: EntQueryMut,

Source§

type Request = ((), W, RR, RW, EW)

Source§

fn run(&mut self, _resp: Response<'_, Self::Request>)

Runs the system with the response corresponding to its request.
Source§

fn name() -> &'static str

Returns system name.
Source§

fn on_transition(&mut self, from: SystemState, to: SystemState)

Does a certain behavior on transitions of system state. Read more
Source§

impl<F, W, RR, RW> System for FnOnceSystem<(Ph, W, RR, RW, Ph), F>
where F: FnOnce(Write<'_, W>, ResRead<'_, RR>, ResWrite<'_, RW>) + Send + 'static, W: QueryMut, RR: ResQuery, RW: ResQueryMut,

Source§

type Request = ((), W, RR, RW, ())

Source§

fn run(&mut self, _resp: Response<'_, Self::Request>)

Runs the system with the response corresponding to its request.
Source§

fn name() -> &'static str

Returns system name.
Source§

fn on_transition(&mut self, from: SystemState, to: SystemState)

Does a certain behavior on transitions of system state. Read more
Source§

impl<F, R, EW> System for FnOnceSystem<(R, Ph, Ph, Ph, EW), F>
where F: FnOnce(Read<'_, R>, EntWrite<'_, EW>) + Send + 'static, R: Query, EW: EntQueryMut,

Source§

type Request = (R, (), (), (), EW)

Source§

fn run(&mut self, _resp: Response<'_, Self::Request>)

Runs the system with the response corresponding to its request.
Source§

fn name() -> &'static str

Returns system name.
Source§

fn on_transition(&mut self, from: SystemState, to: SystemState)

Does a certain behavior on transitions of system state. Read more
Source§

impl<F, R> System for FnOnceSystem<(R, Ph, Ph, Ph, Ph), F>
where F: FnOnce(Read<'_, R>) + Send + 'static, R: Query,

Source§

type Request = (R, (), (), (), ())

Source§

fn run(&mut self, _resp: Response<'_, Self::Request>)

Runs the system with the response corresponding to its request.
Source§

fn name() -> &'static str

Returns system name.
Source§

fn on_transition(&mut self, from: SystemState, to: SystemState)

Does a certain behavior on transitions of system state. Read more
Source§

impl<F, R, RW, EW> System for FnOnceSystem<(R, Ph, Ph, RW, EW), F>
where F: FnOnce(Read<'_, R>, ResWrite<'_, RW>, EntWrite<'_, EW>) + Send + 'static, R: Query, RW: ResQueryMut, EW: EntQueryMut,

Source§

type Request = (R, (), (), RW, EW)

Source§

fn run(&mut self, _resp: Response<'_, Self::Request>)

Runs the system with the response corresponding to its request.
Source§

fn name() -> &'static str

Returns system name.
Source§

fn on_transition(&mut self, from: SystemState, to: SystemState)

Does a certain behavior on transitions of system state. Read more
Source§

impl<F, R, RW> System for FnOnceSystem<(R, Ph, Ph, RW, Ph), F>
where F: FnOnce(Read<'_, R>, ResWrite<'_, RW>) + Send + 'static, R: Query, RW: ResQueryMut,

Source§

type Request = (R, (), (), RW, ())

Source§

fn run(&mut self, _resp: Response<'_, Self::Request>)

Runs the system with the response corresponding to its request.
Source§

fn name() -> &'static str

Returns system name.
Source§

fn on_transition(&mut self, from: SystemState, to: SystemState)

Does a certain behavior on transitions of system state. Read more
Source§

impl<F, R, RR, EW> System for FnOnceSystem<(R, Ph, RR, Ph, EW), F>
where F: FnOnce(Read<'_, R>, ResRead<'_, RR>, EntWrite<'_, EW>) + Send + 'static, R: Query, RR: ResQuery, EW: EntQueryMut,

Source§

type Request = (R, (), RR, (), EW)

Source§

fn run(&mut self, _resp: Response<'_, Self::Request>)

Runs the system with the response corresponding to its request.
Source§

fn name() -> &'static str

Returns system name.
Source§

fn on_transition(&mut self, from: SystemState, to: SystemState)

Does a certain behavior on transitions of system state. Read more
Source§

impl<F, R, RR> System for FnOnceSystem<(R, Ph, RR, Ph, Ph), F>
where F: FnOnce(Read<'_, R>, ResRead<'_, RR>) + Send + 'static, R: Query, RR: ResQuery,

Source§

type Request = (R, (), RR, (), ())

Source§

fn run(&mut self, _resp: Response<'_, Self::Request>)

Runs the system with the response corresponding to its request.
Source§

fn name() -> &'static str

Returns system name.
Source§

fn on_transition(&mut self, from: SystemState, to: SystemState)

Does a certain behavior on transitions of system state. Read more
Source§

impl<F, R, RR, RW, EW> System for FnOnceSystem<(R, Ph, RR, RW, EW), F>
where F: FnOnce(Read<'_, R>, ResRead<'_, RR>, ResWrite<'_, RW>, EntWrite<'_, EW>) + Send + 'static, R: Query, RR: ResQuery, RW: ResQueryMut, EW: EntQueryMut,

Source§

type Request = (R, (), RR, RW, EW)

Source§

fn run(&mut self, _resp: Response<'_, Self::Request>)

Runs the system with the response corresponding to its request.
Source§

fn name() -> &'static str

Returns system name.
Source§

fn on_transition(&mut self, from: SystemState, to: SystemState)

Does a certain behavior on transitions of system state. Read more
Source§

impl<F, R, RR, RW> System for FnOnceSystem<(R, Ph, RR, RW, Ph), F>
where F: FnOnce(Read<'_, R>, ResRead<'_, RR>, ResWrite<'_, RW>) + Send + 'static, R: Query, RR: ResQuery, RW: ResQueryMut,

Source§

type Request = (R, (), RR, RW, ())

Source§

fn run(&mut self, _resp: Response<'_, Self::Request>)

Runs the system with the response corresponding to its request.
Source§

fn name() -> &'static str

Returns system name.
Source§

fn on_transition(&mut self, from: SystemState, to: SystemState)

Does a certain behavior on transitions of system state. Read more
Source§

impl<F, R, W, EW> System for FnOnceSystem<(R, W, Ph, Ph, EW), F>
where F: FnOnce(Read<'_, R>, Write<'_, W>, EntWrite<'_, EW>) + Send + 'static, R: Query, W: QueryMut, EW: EntQueryMut,

Source§

type Request = (R, W, (), (), EW)

Source§

fn run(&mut self, _resp: Response<'_, Self::Request>)

Runs the system with the response corresponding to its request.
Source§

fn name() -> &'static str

Returns system name.
Source§

fn on_transition(&mut self, from: SystemState, to: SystemState)

Does a certain behavior on transitions of system state. Read more
Source§

impl<F, R, W> System for FnOnceSystem<(R, W, Ph, Ph, Ph), F>
where F: FnOnce(Read<'_, R>, Write<'_, W>) + Send + 'static, R: Query, W: QueryMut,

Source§

type Request = (R, W, (), (), ())

Source§

fn run(&mut self, _resp: Response<'_, Self::Request>)

Runs the system with the response corresponding to its request.
Source§

fn name() -> &'static str

Returns system name.
Source§

fn on_transition(&mut self, from: SystemState, to: SystemState)

Does a certain behavior on transitions of system state. Read more
Source§

impl<F, R, W, RW, EW> System for FnOnceSystem<(R, W, Ph, RW, EW), F>
where F: FnOnce(Read<'_, R>, Write<'_, W>, ResWrite<'_, RW>, EntWrite<'_, EW>) + Send + 'static, R: Query, W: QueryMut, RW: ResQueryMut, EW: EntQueryMut,

Source§

type Request = (R, W, (), RW, EW)

Source§

fn run(&mut self, _resp: Response<'_, Self::Request>)

Runs the system with the response corresponding to its request.
Source§

fn name() -> &'static str

Returns system name.
Source§

fn on_transition(&mut self, from: SystemState, to: SystemState)

Does a certain behavior on transitions of system state. Read more
Source§

impl<F, R, W, RW> System for FnOnceSystem<(R, W, Ph, RW, Ph), F>
where F: FnOnce(Read<'_, R>, Write<'_, W>, ResWrite<'_, RW>) + Send + 'static, R: Query, W: QueryMut, RW: ResQueryMut,

Source§

type Request = (R, W, (), RW, ())

Source§

fn run(&mut self, _resp: Response<'_, Self::Request>)

Runs the system with the response corresponding to its request.
Source§

fn name() -> &'static str

Returns system name.
Source§

fn on_transition(&mut self, from: SystemState, to: SystemState)

Does a certain behavior on transitions of system state. Read more
Source§

impl<F, R, W, RR, EW> System for FnOnceSystem<(R, W, RR, Ph, EW), F>
where F: FnOnce(Read<'_, R>, Write<'_, W>, ResRead<'_, RR>, EntWrite<'_, EW>) + Send + 'static, R: Query, W: QueryMut, RR: ResQuery, EW: EntQueryMut,

Source§

type Request = (R, W, RR, (), EW)

Source§

fn run(&mut self, _resp: Response<'_, Self::Request>)

Runs the system with the response corresponding to its request.
Source§

fn name() -> &'static str

Returns system name.
Source§

fn on_transition(&mut self, from: SystemState, to: SystemState)

Does a certain behavior on transitions of system state. Read more
Source§

impl<F, R, W, RR> System for FnOnceSystem<(R, W, RR, Ph, Ph), F>
where F: FnOnce(Read<'_, R>, Write<'_, W>, ResRead<'_, RR>) + Send + 'static, R: Query, W: QueryMut, RR: ResQuery,

Source§

type Request = (R, W, RR, (), ())

Source§

fn run(&mut self, _resp: Response<'_, Self::Request>)

Runs the system with the response corresponding to its request.
Source§

fn name() -> &'static str

Returns system name.
Source§

fn on_transition(&mut self, from: SystemState, to: SystemState)

Does a certain behavior on transitions of system state. Read more
Source§

impl<F, R, W, RR, RW, EW> System for FnOnceSystem<(R, W, RR, RW, EW), F>
where F: FnOnce(Read<'_, R>, Write<'_, W>, ResRead<'_, RR>, ResWrite<'_, RW>, EntWrite<'_, EW>) + Send + 'static, R: Query, W: QueryMut, RR: ResQuery, RW: ResQueryMut, EW: EntQueryMut,

Source§

type Request = (R, W, RR, RW, EW)

Source§

fn run(&mut self, _resp: Response<'_, Self::Request>)

Runs the system with the response corresponding to its request.
Source§

fn name() -> &'static str

Returns system name.
Source§

fn on_transition(&mut self, from: SystemState, to: SystemState)

Does a certain behavior on transitions of system state. Read more
Source§

impl<F, R, W, RR, RW> System for FnOnceSystem<(R, W, RR, RW, Ph), F>
where F: FnOnce(Read<'_, R>, Write<'_, W>, ResRead<'_, RR>, ResWrite<'_, RW>) + Send + 'static, R: Query, W: QueryMut, RR: ResQuery, RW: ResQueryMut,

Source§

type Request = (R, W, RR, RW, ())

Source§

fn run(&mut self, _resp: Response<'_, Self::Request>)

Runs the system with the response corresponding to its request.
Source§

fn name() -> &'static str

Returns system name.
Source§

fn on_transition(&mut self, from: SystemState, to: SystemState)

Does a certain behavior on transitions of system state. Read more
Source§

impl<Req, F: Send> Send for FnOnceSystem<Req, F>

Auto Trait Implementations§

§

impl<Req, F> Freeze for FnOnceSystem<Req, F>
where F: Freeze,

§

impl<Req, F> RefUnwindSafe for FnOnceSystem<Req, F>

§

impl<Req, F> Sync for FnOnceSystem<Req, F>
where F: Sync, Req: Sync,

§

impl<Req, F> Unpin for FnOnceSystem<Req, F>
where F: Unpin, Req: Unpin,

§

impl<Req, F> UnwindSafe for FnOnceSystem<Req, F>
where F: UnwindSafe, Req: 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> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

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> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
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.