Struct specs::saveload::EntityData
source · [−]pub struct EntityData<M, D> {
pub marker: M,
pub components: D,
}
Expand description
A struct used for deserializing entity data.
Fields
marker: M
The marker the entity was mapped to.
components: D
The components associated with an entity.
Trait Implementations
sourceimpl<'de, M, D> Deserialize<'de> for EntityData<M, D> where
M: Deserialize<'de>,
D: Deserialize<'de>,
impl<'de, M, D> Deserialize<'de> for EntityData<M, D> where
M: Deserialize<'de>,
D: Deserialize<'de>,
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl<M, D> RefUnwindSafe for EntityData<M, D> where
D: RefUnwindSafe,
M: RefUnwindSafe,
impl<M, D> Send for EntityData<M, D> where
D: Send,
M: Send,
impl<M, D> Sync for EntityData<M, D> where
D: Sync,
M: Sync,
impl<M, D> Unpin for EntityData<M, D> where
D: Unpin,
M: Unpin,
impl<M, D> UnwindSafe for EntityData<M, D> where
D: UnwindSafe,
M: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more