pub trait ReflectArray: Reflect {
    // Required methods
    fn reflect_index(&self, index: usize) -> Option<&dyn Reflect>;
    fn reflect_index_mut(&mut self, index: usize) -> Option<&mut dyn Reflect>;
    fn reflect_len(&self) -> usize;
}
Expand description

Reflect sub trait for working with slices.

Required Methods§

source

fn reflect_index(&self, index: usize) -> Option<&dyn Reflect>

source

fn reflect_index_mut(&mut self, index: usize) -> Option<&mut dyn Reflect>

source

fn reflect_len(&self) -> usize

Implementations on Foreign Types§

source§

impl<T: Reflect + 'static> ReflectArray for Vec<T>

source§

fn reflect_index(&self, index: usize) -> Option<&dyn Reflect>

source§

fn reflect_index_mut(&mut self, index: usize) -> Option<&mut dyn Reflect>

source§

fn reflect_len(&self) -> usize

source§

impl<const N: usize, T: Reflect> ReflectArray for [T; N]

source§

fn reflect_index(&self, index: usize) -> Option<&dyn Reflect>

source§

fn reflect_index_mut(&mut self, index: usize) -> Option<&mut dyn Reflect>

source§

fn reflect_len(&self) -> usize

Implementors§

source§

impl<T, P> ReflectArray for Pool<T, P>where T: Reflect, P: PayloadContainer<Element = T> + Reflect,