pub fn data_or_default(&mut self, index: usize) -> &mut T
    where
        T: Default,
    {
        self.entities.get_mut(index).unwrap().data_or_default()
    }
/// Get mutable access to the data in the `PrefabEntity` with the given index
///
/// If data is None, this will insert a default value for `T`
///
/// ### Panics
///
/// If the given index do not have a `PrefabEntity`
Get mutable access to the data in the `PrefabEntity` with the given index
If data is None, this will insert a default value for `T`
Get mutable access to the data in the ` PrefabEntity ` with the given index If data is None this will insert a default value for ` T `
pub fn data_or_default(&mut self, index: usize) -> &mut T
    where
        T: Default,
    {
        self.entities.get_mut(index).unwrap().data_or_default()
    }
pub fn data_or_default ( & mut self , index : usize ) -> & mut T where T : Default , { self . entities . get_mut ( index ) . unwrap ( ) . data_or_default ( ) }
Get mutable access to the data in the `PrefabEntity` with the given index
If data is None, this will insert a default value for `T`
Get mutable access to the data in the ` PrefabEntity ` with the given index If data is None this will insert a default value for ` T `
&mut self
index
usize
&mut self
index
usize
panics
If the given index do not have a `PrefabEntity`
If the given index do not have a ` PrefabEntity `