[−][src]Struct specs::saveload::SimpleMarker
Basic marker implementation usable for saving and loading, uses u64
as
identifier
Trait Implementations
impl<T: ?Sized> Clone for SimpleMarker<T>
[src]
fn clone(&self) -> Self
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<T: ?Sized> Component for SimpleMarker<T> where
T: 'static + Send + Sync,
[src]
T: 'static + Send + Sync,
type Storage = DenseVecStorage<Self>
Associated storage type for this component.
impl<T: ?Sized> Copy for SimpleMarker<T>
[src]
impl<T: ?Sized> Debug for SimpleMarker<T>
[src]
impl<'de, T: ?Sized> Deserialize<'de> for SimpleMarker<T>
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl<T: ?Sized> Eq for SimpleMarker<T>
[src]
impl<T: ?Sized> Hash for SimpleMarker<T>
[src]
fn hash<H: Hasher>(&self, state: &mut H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<T: ?Sized> Marker for SimpleMarker<T> where
T: 'static + Send + Sync,
[src]
T: 'static + Send + Sync,
type Allocator = SimpleMarkerAllocator<T>
Allocator for this Marker
type Identifier = u64
Id of the marker
fn id(&self) -> u64
[src]
fn update(&mut self, new_revision: Self)
[src]
impl<T: ?Sized> MarkerAllocator<SimpleMarker<T>> for SimpleMarkerAllocator<T> where
T: 'static + Send + Sync,
[src]
T: 'static + Send + Sync,
fn allocate(&mut self, entity: Entity, id: Option<u64>) -> SimpleMarker<T>
[src]
fn retrieve_entity_internal(&self, id: u64) -> Option<Entity>
[src]
fn maintain(
&mut self,
entities: &EntitiesRes,
storage: &ReadStorage<SimpleMarker<T>>
)
[src]
&mut self,
entities: &EntitiesRes,
storage: &ReadStorage<SimpleMarker<T>>
)
fn retrieve_entity(
&mut self,
marker: M,
storage: &mut WriteStorage<M>,
entities: &EntitiesRes
) -> Entity
[src]
&mut self,
marker: M,
storage: &mut WriteStorage<M>,
entities: &EntitiesRes
) -> Entity
fn mark<'m>(
&mut self,
entity: Entity,
storage: &'m mut WriteStorage<M>
) -> Option<(&'m M, bool)>
[src]
&mut self,
entity: Entity,
storage: &'m mut WriteStorage<M>
) -> Option<(&'m M, bool)>
impl<T: ?Sized> PartialEq<SimpleMarker<T>> for SimpleMarker<T>
[src]
impl<T: ?Sized> Serialize for SimpleMarker<T>
[src]
Auto Trait Implementations
impl<T: ?Sized> RefUnwindSafe for SimpleMarker<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T: ?Sized> Send for SimpleMarker<T> where
T: Send,
T: Send,
impl<T: ?Sized> Sync for SimpleMarker<T> where
T: Sync,
T: Sync,
impl<T: ?Sized> Unpin for SimpleMarker<T> where
T: Unpin,
T: Unpin,
impl<T: ?Sized> UnwindSafe for SimpleMarker<T> where
T: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Any for T where
T: Any,
T: Any,
fn get_type_id(&self) -> TypeId
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<C, M> ConvertSaveload<M> for C where
C: Clone + Serialize + DeserializeOwned,
[src]
C: Clone + Serialize + DeserializeOwned,
type Data = C
(De)Serializable data representation for data type
type Error = NoError
Error may occur during serialization or deserialization of component
fn convert_into<F>(
&Self,
F
) -> Result<<C as ConvertSaveload<M>>::Data, <C as ConvertSaveload<M>>::Error> where
F: FnMut(Entity) -> Option<M>,
[src]
&Self,
F
) -> Result<<C as ConvertSaveload<M>>::Data, <C as ConvertSaveload<M>>::Error> where
F: FnMut(Entity) -> Option<M>,
fn convert_from<F>(
<C as ConvertSaveload<M>>::Data,
F
) -> Result<C, <C as ConvertSaveload<M>>::Error> where
F: FnMut(M) -> Option<Entity>,
[src]
<C as ConvertSaveload<M>>::Data,
F
) -> Result<C, <C as ConvertSaveload<M>>::Error> where
F: FnMut(M) -> Option<Entity>,
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
impl<T> Event for T where
T: Send + Sync + 'static,
[src]
T: Send + Sync + 'static,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Resource for T where
T: Any + Send + Sync,
[src]
T: Any + Send + Sync,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,