[][src]Trait bevy::property::Property

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

Required methods

fn type_name(&self) -> &str

fn any(&self) -> &(dyn Any + 'static)

fn any_mut(&mut self) -> &mut (dyn Any + 'static)

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

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

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

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

Loading content...

Provided methods

fn property_type(&self) -> PropertyType

fn as_properties(&self) -> Option<&(dyn Properties + 'static)>

Loading content...

Trait Implementations

impl PropertyVal for dyn Property + 'static[src]

Implementations on Foreign Types

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

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

impl Property for i16[src]

impl Property for u8[src]

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

impl Property for bool[src]

impl Property for u32[src]

impl Property for u64[src]

impl Property for usize[src]

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

impl Property for f32[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 Property for u16[src]

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

impl Property for i32[src]

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

impl Property for i64[src]

impl Property for i8[src]

impl Property for isize[src]

impl Property for f64[src]

impl Property for String[src]

Loading content...

Implementors

impl Property for HandleId[src]

impl Property for WindowOrigin[src]

impl Property for IndexFormat[src]

impl Property for PrimitiveTopology[src]

impl Property for AssetPathId[src]

impl Property for LabelId[src]

impl Property for SourcePathId[src]

impl Property for Labels[src]

impl Property for Timer[src]

impl Property for Entity[src]

impl Property for Mat4[src]

impl Property for Vec3[src]

impl Property for Mat3[src]

impl Property for Quat[src]

impl Property for Vec2[src]

impl Property for Light[src]

impl Property for DynamicProperties[src]

impl Property for Camera[src]

impl Property for OrthographicProjection[src]

impl Property for PerspectiveProjection[src]

impl Property for VisibleEntities[src]

impl Property for DynamicBinding[src]

impl Property for PipelineSpecialization[src]

impl Property for RenderPipeline[src]

impl Property for ShaderSpecialization[src]

impl Property for VertexBufferDescriptor[src]

impl Property for Color[src]

impl Property for Draw[src]

impl Property for RenderPipelines[src]

impl Property for MainPass[src]

impl Property for Children[src]

impl Property for GlobalTransform[src]

impl Property for Parent[src]

impl Property for Transform[src]

impl<T> Property for Handle<T>[src]

Loading content...