pub struct WorldProcessor { /* private fields */ }
Implementations§
Source§impl WorldProcessor
impl WorldProcessor
pub fn register_entity_remapping<T: Component>( &mut self, f: impl Fn(&mut T, WorldProcessorEntityMapping<'_>) + Send + Sync + 'static, )
pub fn register_entity_remapping_raw( &mut self, type_hash: TypeHash, f: impl Fn(*mut u8, WorldProcessorEntityMapping<'_>) + Send + Sync + 'static, )
pub fn unregister_entity_remapping<T: Component>(&mut self)
pub fn unregister_entity_remapping_raw(&mut self, type_hash: TypeHash)
pub fn remap_entities<T>( &self, data: &mut T, mappings: WorldProcessorEntityMapping<'_>, )
Sourcepub unsafe fn remap_entities_raw(
&self,
type_hash: TypeHash,
pointer: *mut u8,
mappings: WorldProcessorEntityMapping<'_>,
)
pub unsafe fn remap_entities_raw( &self, type_hash: TypeHash, pointer: *mut u8, mappings: WorldProcessorEntityMapping<'_>, )
§Safety
pub fn register_entity_inspector<T: Component>( &mut self, f: impl Fn(&T) -> Vec<Entity> + Send + Sync + 'static, )
pub fn register_entity_inspector_raw( &mut self, type_hash: TypeHash, f: impl Fn(*const u8) -> Vec<Entity> + Send + Sync + 'static, )
pub fn unregister_entity_inspector<T: Component>(&mut self)
pub fn unregister_entity_inspector_raw(&mut self, type_hash: TypeHash)
§Safety
pub fn register_display_formatter<T: Component + Display>(&mut self)
pub fn register_debug_formatter<T: Component + Debug>(&mut self)
pub fn register_formatter<T: Component>( &mut self, f: impl Fn(&T, &mut Formatter<'_>) -> Result + Send + Sync + 'static, )
pub fn register_formatter_raw( &mut self, type_hash: TypeHash, f: impl Fn(*const u8, &mut Formatter<'_>) -> Result + Send + Sync + 'static, )
pub fn unregister_formatter<T: Component>(&mut self)
pub fn unregister_formatter_raw(&mut self, type_hash: TypeHash)
pub fn format_component<'a, T: Component>( &'a self, data: &'a T, ) -> WorldProcessorComponentFormat<'a, T>
Sourcepub unsafe fn format_component_raw(
&self,
type_hash: TypeHash,
pointer: *const u8,
) -> WorldProcessorComponentFormatRaw<'_>
pub unsafe fn format_component_raw( &self, type_hash: TypeHash, pointer: *const u8, ) -> WorldProcessorComponentFormatRaw<'_>
§Safety
pub fn format_world<'a, const LOCKING: bool>( &'a self, world: &'a World, ) -> WorldProcessorWorldFormat<'a, LOCKING>
Trait Implementations§
Source§impl Default for WorldProcessor
impl Default for WorldProcessor
Source§fn default() -> WorldProcessor
fn default() -> WorldProcessor
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for WorldProcessor
impl !RefUnwindSafe for WorldProcessor
impl Send for WorldProcessor
impl Sync for WorldProcessor
impl Unpin for WorldProcessor
impl !UnwindSafe for WorldProcessor
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