#[repr(C)]pub struct ecs_member_t {
pub name: *const c_char,
pub type_: ecs_entity_t,
pub count: i32,
pub offset: i32,
pub unit: ecs_entity_t,
pub range: ecs_member_value_range_t,
pub error_range: ecs_member_value_range_t,
pub warning_range: ecs_member_value_range_t,
pub size: ecs_size_t,
pub member: ecs_entity_t,
}Expand description
Element type of members vector in EcsStruct
Fields§
§name: *const c_charMust be set when used with ecs_struct_desc_t
type_: ecs_entity_t§count: i32May be set when used with ecs_struct_desc_t
offset: i32§unit: ecs_entity_tMay be set when used with ecs_struct_desc_t, will be auto-populated if type entity is also a unit
range: ecs_member_value_range_tNumerical range that specifies which values member can assume. This range may be used by UI elements such as a progress bar or slider. The value of a member should not exceed this range.
error_range: ecs_member_value_range_tNumerical range outside of which the value represents an error. This range may be used by UI elements to style a value.
warning_range: ecs_member_value_range_tNumerical range outside of which the value represents an warning. This range may be used by UI elements to style a value.
size: ecs_size_tShould not be set by ecs_struct_desc_t
member: ecs_entity_tTrait Implementations§
Source§impl Clone for ecs_member_t
impl Clone for ecs_member_t
Source§fn clone(&self) -> ecs_member_t
fn clone(&self) -> ecs_member_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_member_t
impl Debug for ecs_member_t
impl Copy for ecs_member_t
Auto Trait Implementations§
impl Freeze for ecs_member_t
impl RefUnwindSafe for ecs_member_t
impl !Send for ecs_member_t
impl !Sync for ecs_member_t
impl Unpin for ecs_member_t
impl UnwindSafe for ecs_member_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