pub struct DynamicBundle { /* private fields */ }
Implementations§
Source§impl DynamicBundle
impl DynamicBundle
pub fn with_component<T>(self, data: T) -> Result<Self, T>
pub fn with_component_raw(self, data: DynamicManaged) -> Self
pub fn add_component<T>(&mut self, data: T) -> Result<(), T>
pub fn add_component_raw(&mut self, data: DynamicManaged)
pub fn remove_component<T>(&mut self) -> Option<T>
pub fn remove_component_raw( &mut self, type_hash: TypeHash, ) -> Option<DynamicManaged>
Trait Implementations§
Source§impl Bundle for DynamicBundle
impl Bundle for DynamicBundle
fn initialize_into(self, access: &ArchetypeEntityRowAccess<'_>)
Source§impl BundleColumns for DynamicBundle
impl BundleColumns for DynamicBundle
fn columns_static() -> Vec<ArchetypeColumnInfo>
fn columns(&self) -> Vec<ArchetypeColumnInfo>
Source§impl Default for DynamicBundle
impl Default for DynamicBundle
Source§fn default() -> DynamicBundle
fn default() -> DynamicBundle
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for DynamicBundle
impl RefUnwindSafe for DynamicBundle
impl Send for DynamicBundle
impl Sync for DynamicBundle
impl Unpin for DynamicBundle
impl UnwindSafe for DynamicBundle
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