[][src]Trait bevy::property::Properties

pub trait Properties: Property {
    fn prop(&self, name: &str) -> Option<&(dyn Property + 'static)>;
fn prop_mut(&mut self, name: &str) -> Option<&mut (dyn Property + 'static)>;
fn prop_with_index(&self, index: usize) -> Option<&(dyn Property + 'static)>;
fn prop_with_index_mut(
        &mut self,
        index: usize
    ) -> Option<&mut (dyn Property + 'static)>;
fn prop_name(&self, index: usize) -> Option<&str>;
fn prop_len(&self) -> usize;
fn iter_props(&self) -> PropertyIter<'_>

Notable traits for PropertyIter<'a>

impl<'a> Iterator for PropertyIter<'a> type Item = &'a (dyn Property + 'static);
; fn set_prop(&mut self, name: &str, value: &(dyn Property + 'static)) { ... }
fn to_dynamic(&self) -> DynamicProperties { ... } }

Required methods

fn prop(&self, name: &str) -> Option<&(dyn Property + 'static)>

fn prop_mut(&mut self, name: &str) -> Option<&mut (dyn Property + 'static)>

fn prop_with_index(&self, index: usize) -> Option<&(dyn Property + 'static)>

fn prop_with_index_mut(
    &mut self,
    index: usize
) -> Option<&mut (dyn Property + 'static)>

fn prop_name(&self, index: usize) -> Option<&str>

fn prop_len(&self) -> usize

fn iter_props(&self) -> PropertyIter<'_>

Notable traits for PropertyIter<'a>

impl<'a> Iterator for PropertyIter<'a> type Item = &'a (dyn Property + 'static);

Loading content...

Provided methods

fn set_prop(&mut self, name: &str, value: &(dyn Property + 'static))

fn to_dynamic(&self) -> DynamicProperties

Loading content...

Implementations on Foreign Types

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

Loading content...

Implementors

impl Properties for Labels[src]

impl Properties for Timer[src]

impl Properties for Light[src]

impl Properties for DynamicProperties[src]

impl Properties for Camera[src]

impl Properties for OrthographicProjection[src]

impl Properties for PerspectiveProjection[src]

impl Properties for VisibleEntities[src]

impl Properties for PipelineSpecialization[src]

impl Properties for RenderPipeline[src]

impl Properties for Draw[src]

impl Properties for RenderPipelines[src]

impl Properties for MainPass[src]

impl Properties for Children[src]

impl Properties for GlobalTransform[src]

impl Properties for Parent[src]

impl Properties for Transform[src]

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

Loading content...