Trait bevy_reflect::List[][src]

pub trait List: Reflect {
    fn get(&self, index: usize) -> Option<&dyn Reflect>;
fn get_mut(&mut self, index: usize) -> Option<&mut dyn Reflect>;
fn push(&mut self, value: Box<dyn Reflect>);
fn len(&self) -> usize;
fn iter(&self) -> ListIter<'_>

Notable traits for ListIter<'a>

impl<'a> Iterator for ListIter<'a> type Item = &'a dyn Reflect;
; fn is_empty(&self) -> bool { ... }
fn clone_dynamic(&self) -> DynamicList { ... } }

An ordered, mutable list of Reflect items. This corresponds to types like std::vec::Vec.

Required methods

fn get(&self, index: usize) -> Option<&dyn Reflect>[src]

fn get_mut(&mut self, index: usize) -> Option<&mut dyn Reflect>[src]

fn push(&mut self, value: Box<dyn Reflect>)[src]

fn len(&self) -> usize[src]

fn iter(&self) -> ListIter<'_>

Notable traits for ListIter<'a>

impl<'a> Iterator for ListIter<'a> type Item = &'a dyn Reflect;
[src]

Loading content...

Provided methods

Loading content...

Implementations on Foreign Types

impl<T: Reflect> List for Vec<T>[src]

Loading content...

Implementors

impl List for DynamicList[src]

Loading content...