struct Callback {
callback: PyObject,
radius: u16,
query: Query<With<(&'static Entity, &'static Coord), AsfSusceptible>>,
}
Fields
callback: PyObject
radius: u16
query: Query<With<(&'static Entity, &'static Coord), AsfSusceptible>>
Trait Implementations
sourceimpl System for Callback
impl System for Callback
fn update(&mut self, world: &mut World, resources: &mut Resources)
fn initialize(&mut self, _world: &mut World, _resources: &mut Resources)
fn finalize(&mut self, _world: &mut World, _resources: &mut Resources)
fn init_boars(
&self,
_world: &mut World,
_resources: &mut Resources,
_boars: &[Entity]
)
Auto Trait Implementations
impl !RefUnwindSafe for Callback
impl Send for Callback
impl !Sync for Callback
impl Unpin for Callback
impl UnwindSafe for Callback
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more