struct Callback<T> {
observer: Box<dyn EventsObserver<T>>,
callback: PyObject,
header: PyObject,
}
Fields
observer: Box<dyn EventsObserver<T>>
callback: PyObject
header: PyObject
Trait Implementations
sourceimpl<T> System for Callback<T> where
T: ToPyObject,
impl<T> System for Callback<T> where
T: ToPyObject,
fn initialize(&mut self, world: &mut World, resources: &mut Resources)
fn update(&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<T> !RefUnwindSafe for Callback<T>
impl<T> Send for Callback<T>
impl<T> !Sync for Callback<T>
impl<T> Unpin for Callback<T>
impl<T> !UnwindSafe for Callback<T>
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