[−][src]Struct bevy_property::DynamicProperties
Fields
type_name: String
props: Vec<Box<dyn Property>>
prop_names: Vec<Cow<'static, str>>
prop_indices: HashMap<Cow<'static, str>, usize>
property_type: PropertyType
Implementations
impl DynamicProperties
[src]
pub fn map() -> Self
[src]
pub fn seq() -> Self
[src]
pub fn push(&mut self, prop: Box<dyn Property>, name: Option<&str>)
[src]
pub fn set<T: Property>(&mut self, name: &str, prop: T)
[src]
pub fn set_box(&mut self, name: &str, prop: Box<dyn Property>)
[src]
Trait Implementations
impl DeserializeProperty for DynamicProperties
[src]
fn deserialize(
deserializer: &mut dyn Deserializer<'_>,
property_type_registry: &PropertyTypeRegistry
) -> Result<Box<dyn Property>, Error>
[src]
deserializer: &mut dyn Deserializer<'_>,
property_type_registry: &PropertyTypeRegistry
) -> Result<Box<dyn Property>, Error>
impl Properties for DynamicProperties
[src]
fn prop(&self, name: &str) -> Option<&dyn Property>
[src]
fn prop_mut(&mut self, name: &str) -> Option<&mut dyn Property>
[src]
fn prop_with_index(&self, index: usize) -> Option<&dyn Property>
[src]
fn prop_with_index_mut(&mut self, index: usize) -> Option<&mut dyn Property>
[src]
fn prop_name(&self, index: usize) -> Option<&str>
[src]
fn prop_len(&self) -> usize
[src]
fn iter_props(&self) -> PropertyIter<'_>ⓘNotable traits for PropertyIter<'a>
impl<'a> Iterator for PropertyIter<'a> type Item = &'a dyn Property;
[src]
Notable traits for PropertyIter<'a>
impl<'a> Iterator for PropertyIter<'a> type Item = &'a dyn Property;
fn set_prop(&mut self, name: &str, value: &dyn Property)
[src]
fn to_dynamic(&self) -> DynamicProperties
[src]
impl Property for DynamicProperties
[src]
fn type_name(&self) -> &str
[src]
fn any(&self) -> &dyn Any
[src]
fn any_mut(&mut self) -> &mut dyn Any
[src]
fn clone_prop(&self) -> Box<dyn Property>
[src]
fn set(&mut self, value: &dyn Property)
[src]
fn apply(&mut self, value: &dyn Property)
[src]
fn as_properties(&self) -> Option<&dyn Properties>
[src]
fn serializable<'a>(
&'a self,
registry: &'a PropertyTypeRegistry
) -> Serializable<'a>
[src]
&'a self,
registry: &'a PropertyTypeRegistry
) -> Serializable<'a>
fn property_type(&self) -> PropertyType
[src]
Auto Trait Implementations
impl !RefUnwindSafe for DynamicProperties
impl Send for DynamicProperties
impl Sync for DynamicProperties
impl Unpin for DynamicProperties
impl !UnwindSafe for DynamicProperties
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Component for T where
T: 'static + Send + Sync,
T: 'static + Send + Sync,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Resource for T where
T: 'static + Send + Sync,
[src]
T: 'static + Send + Sync,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,