[]Trait bevy::prelude::TupleStruct

pub trait TupleStruct: Reflect {
    pub fn field(&self, index: usize) -> Option<&(dyn Reflect + 'static)>;
pub fn field_mut(
        &mut self,
        index: usize
    ) -> Option<&mut (dyn Reflect + 'static)>;
pub fn field_len(&self) -> usize;
pub fn iter_fields(&self) -> TupleStructFieldIter<'_>

Notable traits for TupleStructFieldIter<'a>

impl<'a> Iterator for TupleStructFieldIter<'a> type Item = &'a (dyn Reflect + 'static);
;
pub fn clone_dynamic(&self) -> DynamicTupleStruct; }

A rust "tuple struct" reflection

Required methods

pub fn field(&self, index: usize) -> Option<&(dyn Reflect + 'static)>

pub fn field_mut(
    &mut self,
    index: usize
) -> Option<&mut (dyn Reflect + 'static)>

pub fn field_len(&self) -> usize

pub fn iter_fields(&self) -> TupleStructFieldIter<'_>

Notable traits for TupleStructFieldIter<'a>

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

pub fn clone_dynamic(&self) -> DynamicTupleStruct

Loading content...

Trait Implementations

impl GetTupleStructField for dyn TupleStruct + 'static

Implementors

impl TupleStruct for DynamicTupleStruct

impl TupleStruct for Children

impl TupleStruct for Parent

impl TupleStruct for PreviousParent

Loading content...