Struct fyrox_core::reflect::FieldInfo
source · pub struct FieldInfo<'a, 'b> {Show 14 fields
pub owner_type_id: TypeId,
pub name: &'b str,
pub display_name: &'b str,
pub description: &'b str,
pub type_name: &'b str,
pub doc: &'b str,
pub value: &'a dyn FieldValue,
pub reflect_value: &'a dyn Reflect,
pub read_only: bool,
pub immutable_collection: bool,
pub min_value: Option<f64>,
pub max_value: Option<f64>,
pub step: Option<f64>,
pub precision: Option<usize>,
}
Fields§
§owner_type_id: TypeId
A type id of the owner of the property.
name: &'b str
A name of the property.
display_name: &'b str
A human-readable name of the property.
description: &'b str
Description of the property.
type_name: &'b str
Type name of the property.
doc: &'b str
Doc comment content.
value: &'a dyn FieldValue
An reference to the actual value of the property. This is “non-mangled” reference, which
means that while field/fields/field_mut/fields_mut
might return a reference to other value,
than the actual field, the value
is guaranteed to be a reference to the real value.
reflect_value: &'a dyn Reflect
A reference to the value casted to Reflect
.
read_only: bool
A property is not meant to be edited.
immutable_collection: bool
Only for dynamic collections (Vec, etc) - means that its size cannot be changed, however the items of the collection can still be changed.
min_value: Option<f64>
A minimal value of the property. Works only with numeric properties!
max_value: Option<f64>
A minimal value of the property. Works only with numeric properties!
step: Option<f64>
A minimal value of the property. Works only with numeric properties!
precision: Option<usize>
Maximum amount of decimal places for a numeric property.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a, 'b> !RefUnwindSafe for FieldInfo<'a, 'b>
impl<'a, 'b> !Send for FieldInfo<'a, 'b>
impl<'a, 'b> !Sync for FieldInfo<'a, 'b>
impl<'a, 'b> Unpin for FieldInfo<'a, 'b>
impl<'a, 'b> !UnwindSafe for FieldInfo<'a, 'b>
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
source§impl<T> FieldValue for Twhere
T: 'static,
impl<T> FieldValue for Twhere
T: 'static,
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self
from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self
is actually part of its subset T
(and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset
but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self
to the equivalent element of its superset.