[][src]Struct bevy::prelude::DynamicProperties

pub struct DynamicProperties {
    pub type_name: String,
    pub props: Vec<Box<dyn Property + 'static>>,
    pub prop_names: Vec<Cow<'static, str>>,
    pub prop_indices: HashMap<Cow<'static, str>, usize, RandomState>,
    pub property_type: PropertyType,
}

Fields

type_name: Stringprops: Vec<Box<dyn Property + 'static>>prop_names: Vec<Cow<'static, str>>prop_indices: HashMap<Cow<'static, str>, usize, RandomState>property_type: PropertyType

Implementations

impl DynamicProperties[src]

pub fn map() -> DynamicProperties[src]

pub fn seq() -> DynamicProperties[src]

pub fn push(&mut self, prop: Box<dyn Property + 'static>, name: Option<&str>)[src]

pub fn set<T>(&mut self, name: &str, prop: T) where
    T: Property
[src]

pub fn set_box(&mut self, name: &str, prop: Box<dyn Property + 'static>)[src]

Trait Implementations

impl DeserializeProperty for DynamicProperties[src]

impl Properties for DynamicProperties[src]

impl Property for DynamicProperties[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Any for T where
    T: Any

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Component for T where
    T: 'static + Send + Sync

impl<T> Downcast for T where
    T: Any

impl<T> DowncastSync for T where
    T: Send + Sync + Any

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<P> PropertiesVal for P where
    P: Properties
[src]

impl<T> Resource for T where
    T: 'static + Send + Sync
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,