pub struct ChangeObserver {
pub commands: CommandBuffer,
/* private fields */
}Fields§
§commands: CommandBufferImplementations§
Source§impl ChangeObserver
impl ChangeObserver
pub fn on_added<T: Component>( &mut self, callback: impl FnMut(&World, &mut CommandBuffer, Entity) + Send + Sync + 'static, )
pub fn on_added_raw( &mut self, type_hash: TypeHash, callback: impl FnMut(&World, &mut CommandBuffer, Entity) + Send + Sync + 'static, )
pub fn on_removed<T: Component>( &mut self, callback: impl FnMut(&World, &mut CommandBuffer, Entity) + Send + Sync + 'static, )
pub fn on_removed_raw( &mut self, type_hash: TypeHash, callback: impl FnMut(&World, &mut CommandBuffer, Entity) + Send + Sync + 'static, )
pub fn on_updated<T: Component>( &mut self, callback: impl FnMut(&World, &mut CommandBuffer, Entity) + Send + Sync + 'static, )
pub fn on_updated_raw( &mut self, type_hash: TypeHash, callback: impl FnMut(&World, &mut CommandBuffer, Entity) + Send + Sync + 'static, )
pub fn process(&mut self, world: &mut World)
pub fn process_execute(&mut self, world: &mut World)
Trait Implementations§
Source§impl Default for ChangeObserver
impl Default for ChangeObserver
Source§fn default() -> ChangeObserver
fn default() -> ChangeObserver
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ChangeObserver
impl !RefUnwindSafe for ChangeObserver
impl Send for ChangeObserver
impl Sync for ChangeObserver
impl Unpin for ChangeObserver
impl !UnwindSafe for ChangeObserver
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more