[][src]Trait bevy_property::Property

pub trait Property: Send + Sync + Any + 'static {
    fn type_name(&self) -> &str;
fn any(&self) -> &dyn Any;
fn any_mut(&mut self) -> &mut dyn Any;
fn clone_prop(&self) -> Box<dyn Property>;
fn set(&mut self, value: &dyn Property);
fn apply(&mut self, value: &dyn Property);
fn serializable<'a>(
        &'a self,
        registry: &'a PropertyTypeRegistry
    ) -> Serializable<'a>; fn property_type(&self) -> PropertyType { ... }
fn as_properties(&self) -> Option<&dyn Properties> { ... } }

Required methods

fn type_name(&self) -> &str

fn any(&self) -> &dyn Any

fn any_mut(&mut self) -> &mut dyn Any

fn clone_prop(&self) -> Box<dyn Property>

fn set(&mut self, value: &dyn Property)

fn apply(&mut self, value: &dyn Property)

fn serializable<'a>(
    &'a self,
    registry: &'a PropertyTypeRegistry
) -> Serializable<'a>

Loading content...

Provided methods

Loading content...

Trait Implementations

impl PropertyVal for dyn Property[src]

Implementations on Foreign Types

impl Property for Entity[src]

impl Property for Vec2[src]

impl Property for Vec3[src]

impl Property for Mat3[src]

impl Property for Mat4[src]

impl Property for Quat[src]

impl<T, I> Property for SmallVec<T> where
    T: Clone + Send + Sync + Serialize + 'static + Array<Item = I>,
    I: Send + Sync + Clone + Serialize + 'static, 
[src]

impl<T> Property for Vec<T> where
    T: Property + Clone + Default
[src]

impl<T> Property for Option<T> where
    T: Clone + Send + Sync + Serialize + for<'de> Deserialize<'de> + 'static, 
[src]

impl<T, H> Property for HashSet<T, H> where
    T: Clone + Eq + Send + Sync + Hash + Serialize + for<'de> Deserialize<'de> + 'static,
    H: Clone + Send + Sync + Default + BuildHasher + 'static, 
[src]

impl<K, V, H> Property for HashMap<K, V, H> where
    K: Clone + Eq + Send + Sync + Hash + Serialize + for<'de> Deserialize<'de> + 'static,
    V: Clone + Send + Sync + Serialize + for<'de> Deserialize<'de> + 'static,
    H: Clone + Send + Sync + Default + BuildHasher + 'static, 
[src]

impl<K, V> Property for BTreeMap<K, V> where
    K: Clone + Ord + Send + Sync + Serialize + for<'de> Deserialize<'de> + 'static,
    V: Clone + Send + Sync + Serialize + for<'de> Deserialize<'de> + 'static, 
[src]

impl<T> Property for Range<T> where
    T: Clone + Send + Sync + Serialize + for<'de> Deserialize<'de> + 'static, 
[src]

impl Property for String[src]

impl Property for bool[src]

impl Property for usize[src]

impl Property for u64[src]

impl Property for u32[src]

impl Property for u16[src]

impl Property for u8[src]

impl Property for isize[src]

impl Property for i64[src]

impl Property for i32[src]

impl Property for i16[src]

impl Property for i8[src]

impl Property for f32[src]

impl Property for f64[src]

Loading content...

Implementors

impl Property for DynamicProperties[src]

Loading content...