Trait fyrox_core::reflect::ReflectList
source · pub trait ReflectList: ReflectArray {
// Required methods
fn reflect_push(
&mut self,
value: Box<dyn Reflect>
) -> Result<(), Box<dyn Reflect>>;
fn reflect_pop(&mut self) -> Option<Box<dyn Reflect>>;
fn reflect_remove(&mut self, index: usize) -> Option<Box<dyn Reflect>>;
fn reflect_insert(
&mut self,
index: usize,
value: Box<dyn Reflect>
) -> Result<(), Box<dyn Reflect>>;
}
Expand description
Reflect
sub trait for working with Vec
-like types
Required Methods§
fn reflect_push( &mut self, value: Box<dyn Reflect> ) -> Result<(), Box<dyn Reflect>>
fn reflect_pop(&mut self) -> Option<Box<dyn Reflect>>
fn reflect_remove(&mut self, index: usize) -> Option<Box<dyn Reflect>>
fn reflect_insert( &mut self, index: usize, value: Box<dyn Reflect> ) -> Result<(), Box<dyn Reflect>>
Implementations§
Implementations on Foreign Types§
source§impl<T: Reflect + 'static> ReflectList for Vec<T>
impl<T: Reflect + 'static> ReflectList for Vec<T>
REMARK: Reflect
is implemented for Vec<T>
where T: Reflect
only.