#[repr(C)]pub struct OwnerComponentApi {
pub children: Option<unsafe extern "C" fn(manager: *const OwnerComponentManagerO, c: *const OwnerComponentT, children: *mut EntityT)>,
pub add_children: Option<unsafe extern "C" fn(manager: *mut OwnerComponentManagerO, c: *mut OwnerComponentT, e: *const EntityT, n: u32)>,
pub remove_children: Option<unsafe extern "C" fn(manager: *mut OwnerComponentManagerO, c: *mut OwnerComponentT, e: *const EntityT, n: u32)>,
pub remove_all_children: Option<unsafe extern "C" fn(manager: *mut OwnerComponentManagerO, c: *mut OwnerComponentT)>,
pub descendants: Option<unsafe extern "C" fn(manager: *const OwnerComponentManagerO, c: *const OwnerComponentT, ta: *mut TempAllocatorI) -> *mut EntityT>,
}Fields§
§children: Option<unsafe extern "C" fn(manager: *const OwnerComponentManagerO, c: *const OwnerComponentT, children: *mut EntityT)>§add_children: Option<unsafe extern "C" fn(manager: *mut OwnerComponentManagerO, c: *mut OwnerComponentT, e: *const EntityT, n: u32)>§remove_children: Option<unsafe extern "C" fn(manager: *mut OwnerComponentManagerO, c: *mut OwnerComponentT, e: *const EntityT, n: u32)>§remove_all_children: Option<unsafe extern "C" fn(manager: *mut OwnerComponentManagerO, c: *mut OwnerComponentT)>§descendants: Option<unsafe extern "C" fn(manager: *const OwnerComponentManagerO, c: *const OwnerComponentT, ta: *mut TempAllocatorI) -> *mut EntityT>Implementations§
Source§impl OwnerComponentApi
impl OwnerComponentApi
pub unsafe fn children( &self, manager: *const OwnerComponentManagerO, c: *const OwnerComponentT, children: *mut EntityT, )
pub unsafe fn add_children( &self, manager: *mut OwnerComponentManagerO, c: *mut OwnerComponentT, e: *const EntityT, n: u32, )
pub unsafe fn remove_children( &self, manager: *mut OwnerComponentManagerO, c: *mut OwnerComponentT, e: *const EntityT, n: u32, )
pub unsafe fn remove_all_children( &self, manager: *mut OwnerComponentManagerO, c: *mut OwnerComponentT, )
pub unsafe fn descendants( &self, manager: *const OwnerComponentManagerO, c: *const OwnerComponentT, ta: *mut TempAllocatorI, ) -> *mut EntityT
Trait Implementations§
Source§impl Clone for OwnerComponentApi
impl Clone for OwnerComponentApi
Source§fn clone(&self) -> OwnerComponentApi
fn clone(&self) -> OwnerComponentApi
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for OwnerComponentApi
impl Default for OwnerComponentApi
Source§fn default() -> OwnerComponentApi
fn default() -> OwnerComponentApi
Returns the “default value” for a type. Read more
impl Copy for OwnerComponentApi
Auto Trait Implementations§
impl Freeze for OwnerComponentApi
impl RefUnwindSafe for OwnerComponentApi
impl Send for OwnerComponentApi
impl Sync for OwnerComponentApi
impl Unpin for OwnerComponentApi
impl UnwindSafe for OwnerComponentApi
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