Struct specs::saveload::U64MarkerAllocator [] [src]

pub struct U64MarkerAllocator { /* fields omitted */ }

Basic marker allocator

Methods

impl U64MarkerAllocator
[src]

[src]

Create new U64MarkerAllocator which will yield U64Markers starting with 0

Trait Implementations

impl Clone for U64MarkerAllocator
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for U64MarkerAllocator
[src]

[src]

Formats the value using the given formatter. Read more

impl Default for U64MarkerAllocator
[src]

[src]

Returns the "default value" for a type. 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