#[repr(C)]pub struct EcsOpaque {Show 15 fields
pub as_type: ecs_entity_t,
pub serialize: ecs_meta_serialize_t,
pub assign_bool: Option<unsafe extern "C" fn(dst: *mut c_void, value: bool)>,
pub assign_char: Option<unsafe extern "C" fn(dst: *mut c_void, value: c_char)>,
pub assign_int: Option<unsafe extern "C" fn(dst: *mut c_void, value: i64)>,
pub assign_uint: Option<unsafe extern "C" fn(dst: *mut c_void, value: u64)>,
pub assign_float: Option<unsafe extern "C" fn(dst: *mut c_void, value: f64)>,
pub assign_string: Option<unsafe extern "C" fn(dst: *mut c_void, value: *const c_char)>,
pub assign_entity: Option<unsafe extern "C" fn(dst: *mut c_void, world: *mut ecs_world_t, entity: ecs_entity_t)>,
pub assign_null: Option<unsafe extern "C" fn(dst: *mut c_void)>,
pub clear: Option<unsafe extern "C" fn(dst: *mut c_void)>,
pub ensure_element: Option<unsafe extern "C" fn(dst: *mut c_void, elem: usize) -> *mut c_void>,
pub ensure_member: Option<unsafe extern "C" fn(dst: *mut c_void, member: *const c_char) -> *mut c_void>,
pub count: Option<unsafe extern "C" fn(dst: *const c_void) -> usize>,
pub resize: Option<unsafe extern "C" fn(dst: *mut c_void, count: usize)>,
}Fields§
§as_type: ecs_entity_t< Type that describes the serialized output
serialize: ecs_meta_serialize_t< Serialize action
assign_bool: Option<unsafe extern "C" fn(dst: *mut c_void, value: bool)>Assign bool value
assign_char: Option<unsafe extern "C" fn(dst: *mut c_void, value: c_char)>Assign char value
assign_int: Option<unsafe extern "C" fn(dst: *mut c_void, value: i64)>Assign int value
assign_uint: Option<unsafe extern "C" fn(dst: *mut c_void, value: u64)>Assign unsigned int value
assign_float: Option<unsafe extern "C" fn(dst: *mut c_void, value: f64)>Assign float value
assign_string: Option<unsafe extern "C" fn(dst: *mut c_void, value: *const c_char)>Assign string value
assign_entity: Option<unsafe extern "C" fn(dst: *mut c_void, world: *mut ecs_world_t, entity: ecs_entity_t)>Assign entity value
assign_null: Option<unsafe extern "C" fn(dst: *mut c_void)>Assign null value
clear: Option<unsafe extern "C" fn(dst: *mut c_void)>Clear collection elements
ensure_element: Option<unsafe extern "C" fn(dst: *mut c_void, elem: usize) -> *mut c_void>Ensure & get collection element
ensure_member: Option<unsafe extern "C" fn(dst: *mut c_void, member: *const c_char) -> *mut c_void>Ensure & get element
count: Option<unsafe extern "C" fn(dst: *const c_void) -> usize>Return number of elements
resize: Option<unsafe extern "C" fn(dst: *mut c_void, count: usize)>Resize to number of elements
Trait Implementations§
Auto Trait Implementations§
impl Freeze for EcsOpaque
impl RefUnwindSafe for EcsOpaque
impl Send for EcsOpaque
impl Sync for EcsOpaque
impl Unpin for EcsOpaque
impl UnwindSafe for EcsOpaque
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