pub struct FieldInfo<'a, 'b> {Show 15 fields
pub owner_type_id: TypeId,
pub name: &'b str,
pub display_name: &'b str,
pub description: &'b str,
pub tag: &'b str,
pub type_name: &'b str,
pub doc: &'b str,
pub value: &'a (dyn FieldValue + 'static),
pub reflect_value: &'a (dyn Reflect + 'static),
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: TypeIdA type id of the owner of the property.
name: &'b strA name of the property.
display_name: &'b strA human-readable name of the property.
description: &'b strDescription of the property.
tag: &'b strTag of the property. Could be used to group properties by a certain criteria or to find a specific property by its tag.
type_name: &'b strType name of the property.
doc: &'b strDoc comment content.
value: &'a (dyn FieldValue + 'static)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 + 'static)A reference to the value casted to Reflect.
read_only: boolA property is not meant to be edited.
immutable_collection: boolOnly 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> Freeze for FieldInfo<'a, 'b>
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> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Any. Could be used to downcast a trait object
to a particular type.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Any. Could be used to downcast a trait object
to a particular type.fn into_any(self: Box<T>) -> Box<dyn Any>
Source§impl<T> FieldValue for Twhere
T: 'static,
impl<T> FieldValue for Twhere
T: 'static,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§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).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.