#[repr(C)]pub struct ecs_from_json_desc_t {
pub name: *const c_char,
pub expr: *const c_char,
pub lookup_action: Option<unsafe extern "C" fn(arg1: *const ecs_world_t, value: *const c_char, ctx: *mut c_void) -> ecs_entity_t>,
pub lookup_ctx: *mut c_void,
}Expand description
Used with ecs_ptr_from_json, ecs_entity_from_json.
Fields§
§name: *const c_char< Name of expression (used for logging)
expr: *const c_char< Full expression (used for logging)
lookup_action: Option<unsafe extern "C" fn(arg1: *const ecs_world_t, value: *const c_char, ctx: *mut c_void) -> ecs_entity_t>Callback that allows for specifying a custom lookup function. The default behavior uses ecs_lookup_fullpath
lookup_ctx: *mut c_voidTrait Implementations§
Source§impl Clone for ecs_from_json_desc_t
impl Clone for ecs_from_json_desc_t
Source§fn clone(&self) -> ecs_from_json_desc_t
fn clone(&self) -> ecs_from_json_desc_t
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 Debug for ecs_from_json_desc_t
impl Debug for ecs_from_json_desc_t
impl Copy for ecs_from_json_desc_t
Auto Trait Implementations§
impl Freeze for ecs_from_json_desc_t
impl RefUnwindSafe for ecs_from_json_desc_t
impl !Send for ecs_from_json_desc_t
impl !Sync for ecs_from_json_desc_t
impl Unpin for ecs_from_json_desc_t
impl UnwindSafe for ecs_from_json_desc_t
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