FuncSystem

Struct FuncSystem 

pub struct FuncSystem<F, D>
where D: SystemData + Tuple,
{ /* private fields */ }

Implementations§

§

impl<F, D> FuncSystem<F, D>
where F: FuncMut<D, Output = ()>, D: SystemData + Tuple,

pub const fn new(func: F) -> Self

Trait Implementations§

§

impl<F, D> SendSystem for FuncSystem<F, D>
where F: FuncMut<D, Output = ()> + Send + Sync + 'static, for<'a> &'a mut F: FuncOnce<D::Arg<'a>, Output = ()> + 'a, D: SystemDataSend + Tuple + 'static, for<'a> D::Arg<'a>: Tuple,

§

fn run_send<'a>(&'a mut self, resources: &'a ResourcesSend)

§

impl<F, D> System for FuncSystem<F, D>
where F: FuncMut<D, Output = ()> + 'static, for<'a> &'a mut F: FuncOnce<D::Arg<'a>, Output = ()> + 'a, D: SystemData + Tuple + 'static, for<'a> D::Arg<'a>: Tuple,

§

fn run<'a>(&'a mut self, resources: &'a Resources)

§

fn update_access(&self, res: &Resources, access: &mut ResourceAccess)

§

impl<F, D> SystemInit for FuncSystem<F, D>
where F: 'static, D: SystemData + Tuple + 'static,

§

fn init(&mut self, resources: &mut Resources)

§

fn system_type_name(&self) -> &'static str

§

fn system_type_id(&self) -> TypeId

§

fn system_label(&self) -> SystemLabel

Auto Trait Implementations§

§

impl<F, D> Freeze for FuncSystem<F, D>
where F: Freeze, <D as SystemData>::Data: Freeze,

§

impl<F, D> RefUnwindSafe for FuncSystem<F, D>

§

impl<F, D> Send for FuncSystem<F, D>
where F: Send, <D as SystemData>::Data: Send,

§

impl<F, D> Sync for FuncSystem<F, D>
where F: Sync, <D as SystemData>::Data: Sync,

§

impl<F, D> Unpin for FuncSystem<F, D>
where F: Unpin, <D as SystemData>::Data: Unpin,

§

impl<F, D> UnwindSafe for FuncSystem<F, D>
where F: UnwindSafe, <D as SystemData>::Data: 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, 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.