[−][src]Struct specs::saveload::UuidMarker
Basic marker uuid implementation usable for saving and loading.
Methods
impl UuidMarker
[src]
pub fn new(uuid: Uuid) -> Self
[src]
Creates a new UuidMarker
Component from the specified uuid.
pub fn new_random() -> Self
[src]
Creates a new UuidMarker
Component with a random uuid.
pub fn uuid(&self) -> Uuid
[src]
Get the current uuid.
Trait Implementations
impl Clone for UuidMarker
[src]
fn clone(&self) -> UuidMarker
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Component for UuidMarker
[src]
type Storage = VecStorage<Self>
Associated storage type for this component.
impl Debug for UuidMarker
[src]
impl<'de> Deserialize<'de> for UuidMarker
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Eq for UuidMarker
[src]
impl Hash for UuidMarker
[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 Marker for UuidMarker
[src]
type Allocator = UuidMarkerAllocator
Allocator for this Marker
type Identifier = Uuid
Id of the marker
fn id(&self) -> Uuid
[src]
fn update(&mut self, new_revision: Self)
[src]
impl MarkerAllocator<UuidMarker> for UuidMarkerAllocator
[src]
fn allocate(&mut self, entity: Entity, id: Option<Uuid>) -> UuidMarker
[src]
fn retrieve_entity_internal(&self, id: Uuid) -> Option<Entity>
[src]
fn maintain(
&mut self,
entities: &EntitiesRes,
storage: &ReadStorage<UuidMarker>
)
[src]
&mut self,
entities: &EntitiesRes,
storage: &ReadStorage<UuidMarker>
)
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 PartialEq<UuidMarker> for UuidMarker
[src]
fn eq(&self, other: &UuidMarker) -> bool
[src]
fn ne(&self, other: &UuidMarker) -> bool
[src]
impl Serialize for UuidMarker
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralEq for UuidMarker
[src]
impl StructuralPartialEq for UuidMarker
[src]
Auto Trait Implementations
impl RefUnwindSafe for UuidMarker
impl Send for UuidMarker
impl Sync for UuidMarker
impl Unpin for UuidMarker
impl UnwindSafe for UuidMarker
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>,