pub trait MetaBundle {
// Required methods
fn get_field(&self, idx: usize) -> Option<&dyn Any>;
fn get_field_mut(&mut self, idx: usize) -> Option<&mut dyn Any>;
}Expand description
Utility trait for erasing structs.
pub trait MetaBundle {
// Required methods
fn get_field(&self, idx: usize) -> Option<&dyn Any>;
fn get_field_mut(&mut self, idx: usize) -> Option<&mut dyn Any>;
}Utility trait for erasing structs.