Struct specs::saveload::U64Marker [] [src]

pub struct U64Marker(_);

Basic marker implementation usable for saving and loading

Trait Implementations

impl Clone for U64Marker
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for U64Marker
[src]

impl Debug for U64Marker
[src]

[src]

Formats the value using the given formatter. Read more

impl Hash for U64Marker
[src]

[src]

Feeds this value into the given [Hasher]. Read more

1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl PartialEq for U64Marker
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl Eq for U64Marker
[src]

impl PartialOrd for U64Marker
[src]

[src]

This method returns an ordering between self and other values if one exists. Read more

[src]

This method tests less than (for self and other) and is used by the < operator. Read more

[src]

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

[src]

This method tests greater than (for self and other) and is used by the > operator. Read more

[src]

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl Ord for U64Marker
[src]

[src]

This method returns an Ordering between self and other. Read more

1.21.0
[src]

Compares and returns the maximum of two values. Read more

1.21.0
[src]

Compares and returns the minimum of two values. Read more

impl Component for U64Marker
[src]

Associated storage type for this component.

impl Marker for U64Marker
[src]

Allocator for this Marker

Id of the marker

[src]

Get this marker internal id. The value of this method should be constant. Read more

[src]

This gets called when an entity is deserialized by DeserializeEntity. It can be used to update internal data that is not used for identification. Read more

impl MarkerAllocator<U64Marker> for U64MarkerAllocator
[src]

[src]

Allocates a new marker for a given entity. If you don't pass an id, a new unique id will be created. Read more

[src]

Get an Entity by a marker identifier. This function only accepts an id; it does not update the marker data. Read more

[src]

Maintain internal data. Cleanup if necessary.

[src]

Tries to retrieve an entity by the id of the marker; if no entity has a marker with the same id, a new entity will be created and marker will be inserted for it. Read more

[src]

Create new unique marker M and attach it to entity. Or get old marker if this entity is already marked. If entity is dead then this will return None. Read more

Auto Trait Implementations

impl Send for U64Marker

impl Sync for U64Marker