[][src]Struct specs::saveload::UuidMarker

pub struct UuidMarker { /* fields omitted */ }

Basic marker uuid implementation usable for saving and loading.


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]

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]

impl Eq for UuidMarker[src]

impl Hash for UuidMarker[src]

impl Marker for UuidMarker[src]

type Allocator = UuidMarkerAllocator

Allocator for this Marker

type Identifier = Uuid

Id of the marker

impl MarkerAllocator<UuidMarker> for UuidMarkerAllocator[src]

impl PartialEq<UuidMarker> for UuidMarker[src]

impl Serialize for UuidMarker[src]

impl StructuralEq for UuidMarker[src]

impl StructuralPartialEq for UuidMarker[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized

impl<T> Any for T where
    T: Any

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

impl<C, M> ConvertSaveload<M> for C where
    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

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 

impl<T> Event for T where
    T: Send + Sync + 'static, 

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T> Resource for T where
    T: Any + Send + Sync

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,