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> ReflectList for Vec<T>where
T: Reflect + 'static,
REMARK: Reflect
is implemented for Vec<T>
where T: Reflect
only.
impl<T> ReflectList for Vec<T>where
T: Reflect + 'static,
REMARK: Reflect
is implemented for Vec<T>
where T: Reflect
only.